<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : RSS feeds question</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 14:25:33 -0000</pubDate>

		<item>
			<title>ez</title>
			<description><![CDATA[Trustmaster,<br />
This could be very simple.. ? Correct me if I am wrong:<br />
<br />
<div class="highlight"><pre class="php">
	// == Category rss ==
	$mtch = $sed_cat&#091;$c&#093;&#091;'path'&#093;.&quot;.&quot;;
	$mtchlen = strlen($mtch);
	$catsub = array();
	$catsub&#091;&#093; = $c;

	foreach($sed_cat as $i =&gt; $x){
		if(substr($x&#091;'path'&#093;, 0, $mtchlen)==$mtch) { $catsub&#091;&#093; = $i; }	}

	$sql = sed_sql_query(&quot;SELECT page_id, page_type, page_title, page_text, page_cat, page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' AND page_cat IN ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') ORDER by page_date DESC LIMIT &quot;.$cfg_maxitems);
	$i = 0;
</pre></div>
<br />
This code: ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') provides the category for output from (pages)<br />
<br />
I simply could make $catsub come from a configuration (plugin config maybe) setting.<br />
<br />
That is filled ONLY if the c parameter is empty.. (now if this is empty, 'news' will be used automatically. So what if we make this configurable.<br />
<br />
So something like $cfg['plugin']['rssfeeds']['nocat']='news, articlecat1, articlecat2'<br />
<br />
This could be a nice config feature for the RSS feeds.<br />
<br />
I will probably will make this for a site that I build.., but maybe this is an idea for Cotonti ?<br />
<br />
Could you explain: <strong>&quot;walking the site recursively would involve many SQL queries more&quot;</strong><br />
<br />
I do not get that  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/confused.gif" alt=":/" />]]></description>
			<pubDate>Mon, 14 Jun 2010 02:49:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5667&d=0#post24940]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Currently there isn't. The reason: walking the site recursively would involve many SQL queries more. And &quot;everything&quot; would be really hard to implement, considering changes in plugins, etc.]]></description>
			<pubDate>Sat, 12 Jun 2010 01:34:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5667&d=0#post24929]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Is there a way to get all changed items in the rss ?<br />
Is this possible ?<br />
<br />
I think if I do: rss.php without the c, then I get the news items.. ??<br />
<br />
<br />
So something like <a href="http://www.cotonti.com/rss.php?c=everything">http://www.cotonti.com/rss.php?c=everything</a><br />
<br />
OR<br />
<br />
Something like <a href="http://www.cotonti.com/rss.php?c=allpages">http://www.cotonti.com/rss.php?c=allpages</a><br />
<br />
just to filter out the forums]]></description>
			<pubDate>Fri, 11 Jun 2010 22:35:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5667&d=0#post24928]]></link>
		</item>
	</channel>
</rss>