Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Suppression des catégories et sous catégories

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Suppression des catégories et sous catégories

More
11 years 11 months ago #8302 by pistoul31
Bonjour

Comment supprimer l'affichage des catégories et sous catégories sur ma page d'accueil ?

Merci
More
11 years 11 months ago #8314 by loic
Bonjour,

Pour supprimer la liste des catégories sur la page d'accueil, il vous faut faire un override de la page 'components/com_adsmanager/views/front/tmpl/default.php'.

Le bloc de code a enlever va de la ligne 33 à la ligne 107 :
<?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;
                            ?>
                                        </h3>
                                    </div>
                                </div>
                                </div>
                            <?php }
                        if ($num == $nbcatsperrow+1) {
                            $num = 1;
                            echo '</div>';
                        }
                        if ($num==1) {
                            echo '<div class="row-fluid">';
                        }
                        $num++;
                    }
 
                    if(isset($this->conf->display_nb_ads_per_categories) && $this->conf->display_nb_ads_per_categories)
                        $numAds = " (".$row->num_ads.")";
                    else
                        $numAds = '';
 
                    $link = TRoute::_("index.php?option=com_adsmanager&view=list&catid=".$row->id);
 
 
                    if ($row->level == 0) {
                        $imgsrc = TTools::getCatImageUrl($row->id);
                            ?>
                        <div class="span<?php echo $classtype ?>">
                            <div class="span12">
                                <div class="span6">
                                <?php 
                                    echo '<a class="image" href="'.$link.'" title="'.htmlspecialchars($row->name).'"><img class="imgcat" src="'.$imgsrc.'" alt="'.htmlspecialchars($row->name).'" /></a>';
                                ?>
                                </div>
                                <div class="span6">
                                <h2 class="no-margin-top"><a href="<?php echo $link; ?>"  ><?php echo htmlspecialchars($row->name).$numAds; ?></a></h2>
 
                                <h3>
                        <?php	
                        $divopen = true;
                        $firstsubcat = true;
                    } else {
                        if ($firstsubcat == false)
                            echo ' - ';
                        echo '<a href="'.$link.'">'.htmlspecialchars($row->name).$numAds.'</a>';
                        $firstsubcat = false;
                    }
                }
                if ($divopen == true) {
                    ?>
                        </h3>
                                </div>
                    </div>
                </div>
                <?php 
                }
                echo "</div>";
                ?>

Et voici un lien pour vous aider à faire un override :
www.joomprod.com/documentation/doc-view-override.html

Cordialement.
Moderators: perry
Time to create page: 0.127 seconds
Powered by Kunena Forum