Page 1 of 1

News RSS Feed Title and Icon

Posted: Sat Sep 16, 2006 7:08 am
by Russ
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]

Re: News RSS Feed Title and Icon

Posted: Wed Oct 10, 2007 3:17 pm
by liudaz
Allright, i have made the RSS feed button to show its title.

1. In news.module.php you add a line

Code: Select all

$this->SetParameterType('rsstitle',CLEAN_STRING);
2. Then, in News folder, action.default.php file, somewhere at a line 34, you make it to look like this

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;
  }
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

Re: News RSS Feed Title and Icon

Posted: Wed Oct 10, 2007 3:37 pm
by tsw
wanna make a patch against current svn

Re: News RSS Feed Title and Icon

Posted: Fri Oct 19, 2007 9:22 am
by liudaz
Would make a patch, but dont know how..  ???