<?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] Descrizione Categoria pubblicata solo nella prima pagina]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,</p>
<p dir="auto">come si può modificare il codice seguente per far comparire la descrizione della categoria solo nella prima pagina della categoria stessa e non in tutte le altre pagine?</p>
<p dir="auto"><em>Codice completo del file blog.php</em> <em>nella cartella Category di Com_Content:</em></p>
<pre><code class="language-php">&lt;?php if ($this-&gt;params-&gt;get('show_page_title')) : ?&gt;
&lt;h1 class="componentheading&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
 &lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('page_title')); ?&gt;
&lt;/h1&gt;
&lt;?php endif; ?&gt;
&lt;div class="blog&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
 &lt;?php if ($this-&gt;params-&gt;def('show_description', 1) || $this-&gt;params-&gt;def('show_description_image', 1)) : ?&gt;
 &lt;div class="contentdescription&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
  &lt;?php if ($this-&gt;params-&gt;get('show_description_image') &amp;&amp; $this-&gt;category-&gt;image) : ?&gt;
  &lt;img src="&lt;?php echo $this-&gt;baseurl . $cparams-&gt;get('image_path') . '/' . $this-&gt;category-&gt;image; ?&gt;" class="image_&lt;?php echo $this-&gt;category-&gt;image_position; ?&gt;" /&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if ($this-&gt;params-&gt;get('show_description') &amp;&amp; $this-&gt;category-&gt;description) :
   echo $this-&gt;category-&gt;description;
  endif; ?&gt;
  &lt;?php if ($this-&gt;params-&gt;get('show_description_image') &amp;&amp; $this-&gt;category-&gt;image) : ?&gt;
  &lt;div class="wrap_image"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;?php endif; ?&gt;
 &lt;/div&gt;
 &lt;?php endif; ?&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;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;
 &lt;?php $introcount = $this-&gt;params-&gt;def('num_intro_articles', 4);
 if ($introcount) :
  $colcount = (int)$this-&gt;params-&gt;def('num_columns', 2);
  if ($colcount == 0) :
   $colcount = 1;
  endif;
  $rowcount = (int) $introcount / $colcount;
  $ii = 0;
  for ($y = 0; $y &lt; $rowcount &amp;&amp; $i &lt; $this-&gt;total; $y++) : ?&gt;
   &lt;div class="article_row&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
    &lt;?php for ($z = 0; $z &lt; $colcount &amp;&amp; $ii &lt; $introcount &amp;&amp; $i &lt; $this-&gt;total; $z++, $i++, $ii++) : ?&gt;
     &lt;div class="article_column column&lt;?php echo $z + 1; ?&gt; cols&lt;?php echo $colcount; ?&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="article_separator"&gt;&amp;nbsp;&lt;/span&gt;
    &lt;?php endfor; ?&gt;
    &lt;span class="row_separator&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;&amp;nbsp;&lt;/span&gt;
   &lt;/div&gt;
  &lt;?php endfor;
 endif; ?&gt;
 &lt;?php $numlinks = $this-&gt;params-&gt;def('num_links', 4);
 if ($numlinks &amp;&amp; $i &lt; $this-&gt;total) : ?&gt;
 &lt;div class="blog_more&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;"&gt;
  &lt;?php $this-&gt;links = array_slice($this-&gt;items, $i - $this-&gt;pagination-&gt;limitstart, $i - $this-&gt;pagination-&gt;limitstart + $numlinks);
  echo $this-&gt;loadTemplate('links'); ?&gt;
 &lt;/div&gt;
 &lt;?php endif; ?&gt;
 &lt;?php if ($this-&gt;params-&gt;def('show_pagination', 2) == 1  || ($this-&gt;params-&gt;get('show_pagination') == 2 &amp;&amp; $this-&gt;pagination-&gt;get('pages.total') &gt; 1)) : ?&gt;
  &lt;?php if( $this-&gt;pagination-&gt;get('pages.total') &gt; 1 ) : ?&gt;
  &lt;p class="counter"&gt;
   &lt;?php echo $this-&gt;pagination-&gt;getPagesCounter(); ?&gt;
  &lt;/p&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if ($this-&gt;params-&gt;def('show_pagination_results', 1)) : ?&gt;
   &lt;?php echo $this-&gt;pagination-&gt;getPagesLinks(); ?&gt;
  &lt;?php endif; ?&gt;
 &lt;?php endif; ?&gt;
&lt;/div&gt;
</code></pre>
<p dir="auto">Grazie Mille</p>
]]></description><link>https://dev.connect.gt/topic/170363/1-5-descrizione-categoria-pubblicata-solo-nella-prima-pagina</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 10:42:05 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/170363.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Apr 2012 14:56:37 GMT</pubDate><ttl>60</ttl></channel></rss>