Pat64 Posted January 16, 2008 Share Posted January 16, 2008 Tel qu'il est conçu, le fichier /root/modules/blockcategories/blockcategories.tpl renvoit une erreur de validation w3c lorsqu'aucune catégorie n'est encore créée. Voici le petit correctif (fichier intégral) : [pre]<!-- Block categories module --> <div class="block_title"> <img src="{$module_dir}logo.gif" alt="" title="{l s='Categories' mod='blockcategories'}" /> {l s='Categories' mod='blockcategories'} </div> <div id="categories" class="block"> {if $categories}<ul class="category"> {foreach from=$categories item=category} <li><a href="{$link->getCategoryLink($category.id_category, $category.link_rewrite)}">{$category.name}</a></li> {/foreach} </ul>{/if} </div> <div class="block_footer"></div> <!-- /Block categories module -->[/pre] Comme vous pouvez le constater, une condition {if...} teste l'existance de catégorie, et affiche, le cas échéant, le code xhtml de la liste non ordonnée ; sinon, la liste ne s'affiche pas. Cordialement, Patrick. Link to comment Share on other sites More sharing options...
Pat64 Posted January 18, 2008 Author Share Posted January 18, 2008 @Matthieu, Merci d'ajouter ce correctif dans la prochaine release. Cordialement, Link to comment Share on other sites More sharing options...
DrÿSs' Posted January 18, 2008 Share Posted January 18, 2008 Corrigé 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