One RSS feed from more than one section?
2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 30, 2011 (RSS)
Does anyone know if it's possible to create a single RSS feed from more than one section of CMSB? I've read http://www.interactivetools.com/docs/cmsbuilder/rss_feeds.html, but this only describes a feed from one section.
Cheers!
Cheers!
Nigel Gordijk
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Re: [NigelGordijk] One RSS feed from more than one section?
By robin - June 30, 2011
Hey Nigel,
You can do it, but it gets more complicated.
From the example, you'll have to fill $newsRecords with a SQL query. Something like:
You'll also need to create the $record['_link'] value yourself to point to wherever you want the link to go.
Hope that helps,
Robin
You can do it, but it gets more complicated.
From the example, you'll have to fill $newsRecords with a SQL query. Something like:
$newsRecords = mysql_query_fetch_all_assoc("SELECT * FROM news INNER JOIN newsLinks");
You'll also need to create the $record['_link'] value yourself to point to wherever you want the link to go.
Hope that helps,
Robin
Robin
Programmer
interactivetools.com
Programmer
interactivetools.com