Jump to content

Add a hook in a module


Recommended Posts

Hi,

 

I put the CMS module in the footer of my website to display a footer menu. I have modified the file cms.tpl to display the content of the links in a Fancybox.

 

In this menu, I'd like to add a link for the newsletter subscription. I have modified the file blocknewsletter.tpl to display the forum in a fancybox.

 

My problem is to display the link in the CMS module.

 

I have created a hook in the database and in the file blockcms.php, I added this line :

 

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

 

In the file blockcms.tpl, I added this line :

 

{$HOOK_NEWSLETTER_FOOTER}

 

But the link is not displayed and I don't find where it can come from. I have look in the log files but nothing...

Link to comment
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...