avaness Posted August 2, 2014 Share Posted August 2, 2014 HiI would like to add another position for modules at the homepage.Therefore i created my own hook and wrote a little module that can be attached to this hook.What I do not understand is, how the hook wil be triggered in the frontend module. In the indexcontroller.php I see each hook for the index.tpl manually assigned. Would this mean that I have to add my hook there (which would mean that I loose update compatibility)? I guess I have missed somthing, could you please advice me how to proceed with my new hook?Thanks and kid regards André Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2014 Share Posted August 2, 2014 you can execute hooks in tpl file with command: {hook::exec('HookName')} you don't have to alter controllers Link to comment Share on other sites More sharing options...
avaness Posted August 2, 2014 Author Share Posted August 2, 2014 Thanks a lot, that works great. Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2014 Share Posted August 2, 2014 you're welcome glad to hear that i could help you a little with this smart smarty / php snippet with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now