Jump to content

Intégrer un hook dans un module


Recommended Posts

Bonjour,

 

en bas de mon site, j'ai placé le module CMS pour afficher mes liens. J'ai modifié mon cms.tpl pour afficher mes liens dans une fancybox.

 

Dans ces liens, je voudrais afficher l'inscription à la newsletter. J'ai modifié mon blockcms.tpl pour afficher le formulaire dans la fancybox.

 

Mon problème, c'est d'afficher ce lien dans le module CMS.

 

Donc j'ai créé mon hook dans la base de données, dans mon fichier blockcms.php j'ai ajouté la ligne

 

'HOOK_NEWSLETTER_FOOTER' => Module::hookExec('hookFooterNewsMenu')

 

et dans mon fichier blockcms.tpl j'ai ajouté la ligne

 

{$HOOK_NEWSLETTER_FOOTER}

 

mais il ne s'affiche pas et je ne trouve pas où se site le problème. j'ai regardé dans mes logs mais rien...

Link to comment
Share on other sites

  • 4 weeks later...

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...