<?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[[1.5] Mostrare articolo principale solo nella prima pagina]]></title><description><![CDATA[<p dir="auto">Buongiorno a tutti,</p>
<p dir="auto">come deve essere modificato il seguente codice per mostrare &lt;div class="leading"&gt; solo nella prima pagina e non in tutte le altre generate dalla paginazione?</p>
<p dir="auto"><em>Codice del file default.php nella cartella Frontpage di Com_Content:</em></p>
<pre><code class="language-php">&lt;div class="blog&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
&lt;?php $i = $this-&gt;pagination-&gt;limitstart;
$rowcount = $this-&gt;params-&gt;def('num_leading_articles', 1);
for ($y = 0; $y &lt; $rowcount &amp;&amp; $i &lt; $this-&gt;total; $y++, $i++) : ?&gt;
&lt;div class="leading&lt;?php echo $this-&gt;params-&gt;get('pageclass_sfx'); ?&gt;"&gt;
&lt;?php $this-&gt;item =&amp; $this-&gt;getItem($i, $this-&gt;params);
echo $this-&gt;loadTemplate('item'); ?&gt;
&lt;/div&gt;
&lt;span class="leading_separator&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;&amp;nbsp;&lt;/span&gt;
&lt;?php endfor; ?&gt;
</code></pre>
<p dir="auto"><em>Codice del file blog.php nella cartella Category di Com_Content:</em></p>
<pre><code class="language-php">&lt;?php $i = $this-&gt;pagination-&gt;limitstart;
$rowcount = $this-&gt;params-&gt;def('num_leading_articles', 1);
for ($y = 0; $y &lt; $rowcount &amp;&amp; $i &lt; $this-&gt;total; $y++, $i++) : ?&gt;
&lt;div class="leading&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
&lt;?php $this-&gt;item =&amp; $this-&gt;getItem($i, $this-&gt;params);
echo $this-&gt;loadTemplate('item'); ?&gt;
&lt;/div&gt;
&lt;span class="leading_separator&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;&amp;nbsp;&lt;/span&gt;
&lt;?php endfor; ?&gt;
</code></pre>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/170359/1-5-mostrare-articolo-principale-solo-nella-prima-pagina</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 08:06:11 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/170359.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Apr 2012 11:33:34 GMT</pubDate><ttl>60</ttl></channel></rss>