Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : il gatto ha nuove code 06 Jan 2013, 15:43:48

: eliminare dicitura "categoria:" davanti al nome della categoria [RISOLTO]
: il gatto ha nuove code 06 Jan 2013, 15:43:48
Salve, mi sembrava un problema stupidissimo e invece non riesco a risolverlo.


Sto facendo un template per Joomla 2.5 e ho usato l'override per far sì che sul titolo di ciascun articolo appaia in grande il nome della categoria. E' andato tutto bene se non fosse per il fatto che la scritta che visualizzo è sempre: CATEGORIA: NOME MIA CATEGORIA mentre io vorrei si leggesse solo MIA CATEGORIA

Il codice che ho usato (semplicemente spostandolo) è



:

<?php if ($params->get('show_category')) : ?>
   <dd class="category-name">
   <?php    $title $this->escape($this->item->category_title);
   
$url '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)).'">'.$title.'[/url]';?>

   <?php if ($params->get('link_category') and $this->item->catslug) : ?>
      <?php echo JText::sprintf('COM_CONTENT_CATEGORY'$url); ?>
   <?php else : ?>
      <?php echo JText::sprintf('COM_CONTENT_CATEGORY'$title); ?>
   <?php endif; ?>
   </dd>
<?php endif; ?>



: Re:eliminare dicitura "categoria:" davanti al nome della categoria
: il gatto ha nuove code 06 Jan 2013, 15:53:17
Effettivamente era una sciocchezza. Posto il codice corretto  :)

:

<?php if ($params->get('show_category')) : ?>
<dd class="category-name">
<?php  $title $this->escape($this->item->category_title);
$url '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)).'">'.$title.'</a>';?>

<?php if ($params->get('link_category') and $this->item->catslug) : ?>
<?php echo JText::sprintf($url); ?>
<?php else : ?>
<?php echo JText::sprintf($title); ?>
<?php endif; ?>
</dd>
<?php endif; ?>