|
Hi,
at the first: very good job.
But I have problem with component's Menu, because it does not work and I used normal way for have a page with all articles (www.riforme.info/rss)
For other problem i solved with little change in the controller.php, but I think you can do better.
I did change this part for cut the $articleBody, because some time in the feed there is full text.
// Parse the articles in the feed $articles = $rssDoc->get_items(); $titles = $model->getArticleTitles($channel->category); foreach($articles as $article) { $articleTitle =& $article->get_title(); // $articleBody =& $article->get_description();
$descrizione =& $article->get_description(); $numwords = 80; preg_match("/([\S]+\s*){0,$numwords}/", $descrizione, $desc); $articleBody = trim($desc[0]);
Other change for don' show the sorce and put Read all in my language. Sometime the sourse is too long and there are problem with the template:
// Add the source at the end of intro text 'introtext' => $articleBody . '<p>' // . JText::_('SOURCE') . ': ' . '<a href="' . $article->get_link() . '" target="_blank">' . JText::_('Leggi Tutto') . ' ' . '</a></p>',
Best Reagards |