UPDATED
1. What does this set? Is it for discovery??
(Set in action.rss.php)
$feed_title = 'CMS Made Simple News Feed';
2. Also should the RSS feed use what seems to be the standard icon used by Firefox and now IE for RSS (attached.)
3. Also being able to add some text to the RSS feed would be good, like 'Subscribe to our RSS News Feed' as an option of the tag e.g.
{cms_module module="news" makerssbutton="true" linktext ="Subscribe to our RSS News Feed"}
So it could become part of the link?
Russ
[gelöscht durch Administrator]
News RSS Feed Title and Icon
News RSS Feed Title and Icon
Last edited by Russ on Sat Sep 16, 2006 7:22 am, edited 1 time in total.
Re: News RSS Feed Title and Icon
Allright, i have made the RSS feed button to show its title.
1. In news.module.php you add a line
2. Then, in News folder, action.default.php file, somewhere at a line 34, you make it to look like this
3. You call RSS button like this: {news makerssbutton="true" rsstitle="whatever"}
BTW: you can change the RSS image here too by replacing images/cms/xml_rss.gif\ with your own
Hope this works
liudaz
1. In news.module.php you add a line
Code: Select all
$this->SetParameterType('rsstitle',CLEAN_STRING);
Code: Select all
if (isset($params["makerssbutton"]))
{
$params["showtemplate"] = "false";
echo $this->CreateLink($id, 'rss', $returnid, "<img border=\"0\" src=\"images/cms/xml_rss.gif\" alt=\"RSS feed\" align=\"top\"/> ".$params['rsstitle']."",$params,'',false,false,'',true,'news/rss', $parameters);
return;
}
BTW: you can change the RSS image here too by replacing images/cms/xml_rss.gif\ with your own

Hope this works

liudaz
Last edited by liudaz on Wed Oct 10, 2007 3:20 pm, edited 1 time in total.
Re: News RSS Feed Title and Icon
wanna make a patch against current svn