Jump to content

conditionnel sur image categorie


armuser

Recommended Posts

Bonjour,
je souhaite faire un conditionnel sur l'affichage des images de catégories et sous catégorie mais ca ne fonctionne pas

voici ce que j ai fait dans le fichier category.tpl

Merci 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...