Javier78 Posted October 25, 2023 Share Posted October 25, 2023 Bonjour à tous! Je cherche à déplacer l'affichage du bloc des sous catégories à la place de la description de la catégorie. Quelqu'un pourrait il m'aiguiller sur ce sujet ou m'indiquer un topic existant? Est ce qu'en modifiant le category.tpl ...? Je tourne sur la version 1.6. Merci Link to comment Share on other sites More sharing options...
Eolia Posted October 26, 2023 Share Posted October 26, 2023 Oui, il suffit d'inverser les 2 blocs dans le fichier category.tpl. La partie concernant les sous-catégories ressemble à ça: {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Link to comment Share on other sites More sharing options...
Javier78 Posted October 26, 2023 Author Share Posted October 26, 2023 Super merci je vais essayer ça ! Link to comment Share on other sites More sharing options...
Javier78 Posted October 27, 2023 Author Share Posted October 27, 2023 21 hours ago, Javier78 said: Super merci je vais essayer ça ! Ca fonctionne parfaitement merci encore ! 1 Link to comment Share on other sites More sharing options...
Eolia Posted October 27, 2023 Share Posted October 27, 2023 Bonne continuation Link to comment Share on other sites More sharing options...
Mediacom87 Posted October 27, 2023 Share Posted October 27, 2023 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now