Back to top

Autore Topic: Sottocategorie adsmanager  (Letto 626 volte)

Offline mikict

  • Nuovo arrivato
  • *
  • Post: 12
    • Mostra profilo
Sottocategorie adsmanager
« il: 26 Giu 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]

 



Web Design Bolzano Kreatif