Mukatai Posted November 20, 2012 Share Posted November 20, 2012 (edited) Bonjour, Je souhaiterais afficher la liste des fabricants dans le header de mon thème, j'ai donc copié une partie du code de la page manufacturer-list.tpl dans heder.tpl. Mais cela ne fonctionne que lorsque je suis sur une page qui utilise manufacturer-list.tpl. Que dois-je ajouter pour cette fonction fonctionne ? Ma fonction : Quote {foreach from=$manufacturers item=manufacturer name=manufacturers} <li> <a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}" class="lnk_img"> <div id="ManImg"> <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-Small-Man.jpg" alt="" width="100" height="40" /> </div> <div id="ManDescription"> <b>{$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'}</b><br/> {$manufacturer.short_description|truncate:80:'...'|escape:'htmlall':'UTF-8'} </div> </a> </li> {/foreach} Merci pour votre aide. @+ Edited November 20, 2012 by Mukatai (see edit history) 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