mlfrey Posted June 13, 2013 Share Posted June 13, 2013 Hi everyone... Was wondering if someone could help explain to me where to add a custom hook to a CMS page so it will show up at that exact spot on a certain page, and NOT ALL CMS pages. Which file should i add the hook to and where? Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 all you have to do is ... create new hook, then in the cms.tpl you can use it only for certain pages, for example - with {if} condition. {if tools:getValue('id_cms')==5} {HOOK_MY_NEW_HOOK} {/if} Link to comment Share on other sites More sharing options...
mlfrey Posted June 13, 2013 Author Share Posted June 13, 2013 Ok tried that, but it is just freezing my pages now. Is there a certain place in the cms.tpl to paste this? Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 what you mean by "freezing" ? any error appear? Link to comment Share on other sites More sharing options...
mlfrey Posted June 13, 2013 Author Share Posted June 13, 2013 No errors...the CMS pages just won't load when i add that statement. When i remove it again they are fine. Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 and if you use instead the {HOOK_CALL} any other content - the same? Link to comment Share on other sites More sharing options...
mlfrey Posted June 13, 2013 Author Share Posted June 13, 2013 i can use the custom hook anywhere else...footer,header,left column, etc....but when i try to use it on a cms page it doesn't work. 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