Jump to content

[PS 1.7.6.1] Affichage des images de categories avec le module ps_categorytree


NewPSdev
 Share

Recommended Posts

Bonjour,

Je cherche à afficher les images des catégories correspondantes avec ce module que j'affiche en page d'accueil.

Pour l'instant j'ai fais un bricolage du genre

<img src="{$urls.img_cat_url}{$node.id}-category_default.jpg">

ou $node.id va chercher l'id de la categorie dans le template. c'est moyen car en plus je ne peux pas faire de condition si l'image n'existe pas.

Si quelqu'un à une autre solution plus propre je suis preneur.

 

Merci

Edited by NewPSdev (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More