Jump to content

Template override


RomsWebDesign

Recommended Posts

Hello,

 

I would like to have a different template for my sub-categories.

I saw the doc for doing this, I should override the getOverrideTemplate () method.

 

Unfortunately I'm going to see in the FrontController the method in question and I do not understand how it works and how I can override.

 

Here is the method in question


/**
* Returns the template corresponding to the current page.
* By default this method return false but could easily be overridden in a specific controller
*
* @since 1.5
* @return bool
*/

public function getOverrideTemplate()
{
return Hook::exec('DisplayOverrideTemplate', array('controller' => $this));

Is anyone has overriden this method and if so is this person could explain principle?

 

thank you.

 

P.S. Sorry for my poor english

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