BeRoots Posted June 27, 2016 Share Posted June 27, 2016 Hi everybody I would like to see the code of this HOOK_TOP in the <header> of header.tpl : {if isset($HOOK_TOP)}{$HOOK_TOP}{/if} 1°) Where is this $HOOK_TOP variable is declared ? 2°) How does it work to change the content of a hook like this in Prestasop ? Thank in advance Link to comment Share on other sites More sharing options...
Rolige Posted June 27, 2016 Share Posted June 27, 2016 The varible {$HOOK_TOP} in the tpl file include all the modules hooked in that hook "displayTop", you can see the modules listed in this hook at: Back Office > Modules > Positions Here a screenshot to help... Link to comment Share on other sites More sharing options...
BeRoots Posted June 27, 2016 Author Share Posted June 27, 2016 Thanks for this response you answered my question completely Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2016 Share Posted June 27, 2016 1°) Where is this $HOOK_TOP variable is declared ? it is defined in classes/controllers/FrontController.php near line 580 you can find code: 'HOOK_TOP' => Hook::exec('displayTop'), and variable contains code from modules as COTOKO said 1 Link to comment Share on other sites More sharing options...
BeRoots Posted June 28, 2016 Author Share Posted June 28, 2016 Thanks Ambassadors 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