Jump to content

Remove side column with custom page


Recommended Posts

Hi there!

 

I finally created my very first module following the guidelines here:

 

http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front+office

 

Everything great but the default layout I get on the "display" page (the front controller) is with left column and right column too.

 

I would like to have a full width. 

 

Any help?

 

Thanks!

 

 

  • Like 1
Link to comment
Share on other sites

These preferences can be managed from the theme at: Back Office > Preferences > Themes > Advanced settings

 

Can be managed also from the code in the module, but of course is not the best way.

 

Here some screenshot to help...

 

Screen_Shot_2016_06_24_at_8_17_06_PM_2.p

Screen_Shot_2016_06_24_at_8_17_39_PM_2.p

Link to comment
Share on other sites

Ok, in the file of the front controller you can achieve that in the method initContent() as this example

public function initContent()
{
        // Set this options as "true" to display whatever you need
	$this->display_column_left = false;
	$this->display_column_right = false;

	parent::initContent();

	// The rest of the code continues here
}
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...