Jump to content

hook right column before the center column


Recommended Posts

hi all

i'm creating a new template and i really need to change the right column position to be before the center column.
i added the {$HOOK_RIGHT_COLUMN} to the header.tpl before the content but it does not display.

any ideas?

thanks

Link to comment
Share on other sites

That won't work because the right column hook is called in footer.php, not header.php:

'HOOK_RIGHT_COLUMN' => Module::hookExec('rightColumn'),



The easiest solution is to copy that line over to header.php, but if this is a theme you are going to release, it is not a good idea to modify PHP files. The only thing I can think of that might work without modifying PHP files is to add the following to header.tpl where you want the right column code to appear:

{php}echo Module::hookExec('rightColumn');{/php}



That should hopefully get the output of the right column hook.

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