Jump to content

definition of hooks


osit
 Share

Recommended Posts

Share this post


Link to post
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?

Share this post


Link to post
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');

        }

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More