Jump to content

definition of hooks


osit

Recommended Posts

Link to comment
Share on other sites

  • 2 weeks later...

ok, but i still cant find this code for HOME.
My question is where I can find html/php code for HOMEor elements of HOME. I saw where it's defined but no information what it contains and where to look for it. Can u help me with that?

Link to comment
Share on other sites

In second link

home Homepage content

Allows you to add code to the center column on the homepage only.
It is called in index.php and then displayed in index.tpl.


And go to Back Office >> Modules >> Positions and under Homepage content you see list of modules that are "hooked" to HOME.

So any module that you want to be displayed on homepage must have this function in modules php code

    function hookHome($params)
   {

           // here is called modules tpl file like
           return $this->display(__FILE__, 'editorial.tpl');

        }

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