kiwoo Posted June 26, 2009 Share Posted June 26, 2009 Bonjour,J'utilise cette fonction {if $page_name eq 'index'}{/if} dans mon header.tpl pour pouvoir afficher un flash différent suivant les pages. Cela fonctionne trés bien.Je souhaiterais maintenant pouvoir faire la même chose pour les différentes rubriques "catégories".J'ai bien essayé de faire {if $id_category eq '2'}{/if} mais ça fonctionne pas vraiment Quelqu'un aurait une solution ? Link to comment Share on other sites More sharing options...
vins Posted June 26, 2009 Share Posted June 26, 2009 essaye plutôt ça: {if $category->id==2} 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