<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Modifiche componente com_rss]]></title><description><![CDATA[<p dir="auto">Salve,</p>
<p dir="auto">ho bisogno di apportare una modifica al file rss.php del componente com_rss (joomla 1.0) per far in modo che non vengano estratti i contenuti di tutte le categorie o sezioni del sito ma solo di alcune.</p>
<p dir="auto">Ho provato ad aggiungere, nella query al db che ho trovato nel file rss.php, dopo WHERE<br />
. "\n AND <a href="http://sec.id" rel="nofollow ugc">sec.id</a> = 1,3,7,14" (cioè solo alcune delle sezioni presenti nel sito) ma non succede nulla...</p>
<p dir="auto">C'è qualche anima pia che mi può dare un valido aiuto?</p>
<p dir="auto">Questa dovrebbe essere la query al db:</p>
<pre><code>// query of frontpage content items
$query = "SELECT a.*, u.name AS author, u.usertype, UNIX_TIMESTAMP( a.created ) AS created_ts, cat.title AS cat_title, sec.title AS section_title"
. "\n FROM #__content AS a"
//. "\n INNER JOIN #__content_frontpage AS f ON f.content_id = a.id"
. "\n LEFT JOIN #__users AS u ON u.id = a.created_by" 
. "\n LEFT JOIN #__categories AS cat ON cat.id = a.catid"
. "\n LEFT JOIN #__sections AS sec ON sec.id = a.sectionid"
. "\n WHERE a.state = 1"
. "\n AND cat.published = 1"
. "\n AND sec.published = 1"
. "\n AND a.access = 0"
. "\n AND cat.access = 0"
. "\n AND sec.access = 0"
. "\n AND ( a.publish_up = " . $database-&gt;Quote( $nullDate ) . " OR a.publish_up &lt;= " . $database-&gt;Quote( $now ) . " )"
. "\n AND ( a.publish_down = " . $database-&gt;Quote( $nullDate ) . " OR a.publish_down &gt;= " . $database-&gt;Quote( $now ) . " )"
. "\n ORDER BY $orderby"
;
$database-&gt;setQuery( $query, 0, $info[ 'count' ] );
$rows = $database-&gt;loadObjectList();
foreach ( $rows as $row ) {
// title for particular item
$item_title = htmlspecialchars( $row-&gt;title );
$item_title = html_entity_decode( $item_title );
</code></pre>
<p dir="auto">Grazie mille</p>
<p dir="auto">Nik</p>
]]></description><link>https://dev.connect.gt/topic/130014/modifiche-componente-com_rss</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 10:48:48 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/130014.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Jun 2010 06:06:44 GMT</pubDate><ttl>60</ttl></channel></rss>