Jump to content

hookHeader module function only working on home page


Recommended Posts

Hi

 

I have a module which is loading a header.tpl file using the hookHeader function but it is only working on the home page.

 

My understanding was that hookHeader got called on every page of the site but it is not including the file anywhere other than the home page.

 

The install function is:

 

 

public function install()

{

if (!parent::install()

OR !$this->registerHook('header')

OR !$this->registerHook('rightColumn')

)

return false;

return true;

}

 

and hookHeader function is:

 

 

function hookHeader($params)

{

return $this->display(__FILE__, 'header.tpl');

}

 

Can anyone think why this would only work on the home page?

 

Any thoughts appreciated thanks.

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