Jump to content
alexandrieb

[RESOLU] HelperList - Image

Recommended Posts

Bonjour,

 

j'aimerais quelques infos pour la finition de mon module.

 

J'ai un renderList et j'aimerais afficher une image... via un nom composé de l'id et de l'id_shop

 

est ce possible?

 

Merci

Edited by alexandrieb (see edit history)

Share this post


Link to post
Share on other sites

Bonne question je suis preneur aussi,

pour le moment j'ai juste réussi a faire ceci:

post-1267578-0-63871800-1498039039_thumb.png

 

il y a bien une histoire d'image dans la classe HelperList

    ['image'] => 's',                              // If set, an image will be displayed in this field located in the '/img' subfolder defined as value here (optional).

    ['image_id'] => 3,                             // If 'image' is set and if 'image_id' is set, it will be used as the image filename, 

http://doc.prestashop.com/display/PS16/Using+the+HelperList+class

                             

Share this post


Link to post
Share on other sites

J'ai trouvé comment faire.

 

'image' => 'chemin du dossier contenant les images',

'image_id' => 'alias sql' => l'alias du champ de ma requete qui contient les noms de chaque fichier

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

×
×
  • Create New...

Important Information

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