Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : mikict 26 Jun 2014, 23:14:30

: Sottocategorie adsmanager
: mikict 26 Jun 2014, 23:14:30
Salve a tutti
Sto realizzando un sito con il componente adsmanager che contiene 4 categorie e molte (da 10 a 20) sottocategorie, per non far vedere una sfilza lunghissima di nomi vorrei limitarne il numero per tutti uguale (8-10) ed aggiungere un "leggi tutto..." che mi porti alla categoria principale.
Il file interessato è "views/front/tmpl/default.php" e questa è (dovrebbe essere) la porzione interessata:


<?php
    $nbcatsperrow = $this->conf->display_nb_categories_per_row;
    $classtype = (int) (12 / $nbcatsperrow);
   
    $num = 1;
    $divopen = false;
   
    foreach ($this->cats as $row) {
        //remove the if if you want more than 1 sublevel
        if ($row->level > 1) {
            continue;
        }
       
       
        if ($row->level == 0) {
            if ($divopen == true) {
                $divopen = false;
                ?>

Qualcuno può aiutarmi in questa per me impossibile impresa ?
Grazie anticipate

[allegato eliminato automaticamente dopo un anno]