armuser Posted October 29, 2009 Share Posted October 29, 2009 Bonjour,je souhaite faire un conditionnel sur l'affichage des images de catégories et sous catégorie mais ca ne fonctionne pasvoici ce que j ai fait dans le fichier category.tplMerci de votre aide {if $subcategory.id_image} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {else} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|truncate:11|escape:'htmlall':'UTF-8'} {/if} 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