How to set RSS feed

GK User
Wed Jan 30, 2013 10:29 am
Hello,

I need to set RSS feed in economic alert category only. [http://www.pathfinderfoundation.org/pf-projects/on-going/economic-alert] How can I set the RSS feed ? Please advice me.

Many Thanks
User avatar
Senior Boarder

teitbite
Wed Jan 30, 2013 1:26 pm
Hi

This is a K2 category which means that RSS is already build in. Please just search in category settings to enable showing it. It can be also configured under menu item for this page.
User avatar
Moderator

GK User
Thu Jan 31, 2013 7:45 am
Thank you for the quick reply.

sorry this not K2 category. It's dealt joomla category. I tried with Syndication Feeds module. but It's not working. Please advice me.

Many Thanks
User avatar
Senior Boarder

GK User
Thu Jan 31, 2013 8:26 am
Hello,

I fixed that issue.

I opened modules/mod_syndicate/mod_syndicate.php and changed line 19 from

$link = modSyndicateHelper::getLink($params);

to

$link = modSyndicateHelper::getLink($params)."";

and I changed /modules/mod_syndicate/helper.php from

Code:
class modSyndicateHelper
{
static function getLink(&$params)
{
$document = JFactory::getDocument();

foreach($document->_links as $link)
{
if (strpos($link, 'application/'.$params->get('format').'+xml')) {
preg_match("#href=\"(.*?)\"#s", $link, $matches);
return $matches[1];
}
}

}
}

to

class modSyndicateHelper
{
static function getLink(&$params)
{
$document = JFactory::getDocument();

foreach($document->_links as $i=>$value)
{
if ($value[attribs][type] == 'application/'.$params->get('format').'+xml')
return $i;
}
}
}

credit goes to chrisconradi from joomla forum.

Thank You
User avatar
Senior Boarder

teitbite
Thu Jan 31, 2013 11:50 am
Hi

Ok. Looks correct, but having modification in this place will make it lost during joomla update. Is this problem reported to joomla developers to they can include this fix in new update package ?
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.