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
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
-
- 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.
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.
-
- 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
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
-
- 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
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
-
- 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 ?
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 ?
-
- Moderator
5 posts
• Page 1 of 1