Jump to content

Variable smarty cdn dans module


Go to solution Solved by Matt75,

Recommended Posts

Bonjour,

 

je suis a la recherche de la variable smarty qui permet d'utiliser l'url cdn lorsque je dois afficher une image dans mon module.

 

Rien trouvé chez:

http://www.prestatoolbox.fr/content/22-global-smarty-prestashop

https://www.team-ever.com/les-variables-smarty-de-prestashop/

ou encore

https://mypresta.eu/en/art/developer/global-smarty-template-variables.html

 

Ni même sur le forum :(

 

 

Merci

Share this post


Link to post
Share on other sites
  • Solution

A priori faudrait tester un truc de ce genre dans ton tpl

{$link->getMediaLink($filepath)|escape:'html':'UTF-8'}

En remplaçant $filepath par le chemin vers ton image

  • Like 1

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