[Solved] RSS2HTML Module configuration

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

[Solved] RSS2HTML Module configuration

Post by percusionista »

Hi

I've instaled RSS2HTML Module, to insert feeds frow other sites in my web and works fine, but there is something I don't know how to manage.

As it is, shows all variables in screen, title, autor, date, message, ... I just want only title of message with it's own link to theme forum to be shown.

I've read Module's help but I don't know how to manage this
The variable 'rss' contains all the elements of an RSS feed parsed into a number of arrays. Below is an example of how to access various parts of the feed (this is by no means a complete list):

    * The 'channel' array. Note that more elements may be available depending on the feed.
          o The title of the feed - $rss->channel.title
          o The language of the feed - $rss->channel.language
          o The site of where the feed originates - $rss->channel.link
          o The description of the feed - $rss->channel.description
          o The feed's tagline - $rss->channel.tagline

    * The 'items' array. Note that more elements may be available depending on the feed.
          o The title of the item - $item.title
          o The link to the item - $item.link
          o The description of the item - $item.description
          o The publish date of the item - $item.pubdate
          o The GUID of the item - $item.guid
          o The summary of the item - $item.summary
          o The date/timestamp of the item - $item.date_timestamp
So... what can I do to manage this?

thank you
Last edited by percusionista on Sun Dec 09, 2007 6:31 pm, edited 1 time in total.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: RSS2HTML Module configuration

Post by kermit »

you need to change the rss template....

copy the contents of the default rss template to a new one called 'TitlesOnly'; then take out the parts you don't want...


{$rss->channel.title}

{foreach from=$rss->items item=item}
{$item.title}

{/foreach}



then you add the template to the rss module call.

{cms_module module='RSS2HTML' feed='BBC Americas' template='TitlesOnly'}



cmsms is based on the smarty templating engine, and just about everything has templates you can customize. learning how to do that is crucial if you want to progress past just using 'the defaults', whatever they may be.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

Re: RSS2HTML Module configuration

Post by percusionista »

Thank you, very much.

Now it works fine.
cmsms is based on the smarty templating engine, and just about everything has templates you can customize. learning how to do that is crucial if you want to progress past just using 'the defaults', whatever they may be.
that's true, I do it with templates and stylesheet, but I had not realized that all that items where included in template.
Your solution has open up my mind to this kind of "problems"
Post Reply

Return to “CMSMS Core”