Jump to content

custom page display column


Recommended Posts

Hi,

 

I created a new page (not using cms) because I want  it to be a dynamique page.

 

In my theme, I've selected that no column would be display on that page 

 

post-124248-0-52876400-1459693531_thumb.png

 

Even with that, it still display both column.

 

Anykind of help will be much appreciated.

 

In my tpl there is only the main page I want to display (no column).

Link to comment
Share on other sites

thank you for your reply,

 

I've created 3 files :

 

in root folder:

 

anti-counterfeit.php

<?php
  include(dirname(__FILE__).'/config/config.inc.php');
  Tools::displayFileAsDeprecated();
 
  include(dirname(__FILE__).'/header.php');
 
  $smarty->display(_PS_THEME_DIR_.'anti-counterfeit.tpl');
 
  include(dirname(__FILE__).'/footer.php');
  

Then in controller AntiCounterfeitController.php

<?php

 
  /*  The classname here will be the name of the controller  */
  class AntiCounterfeitController extends FrontController{
 
    public function init(){
      parent::init();
    }
     
    public function initContent(){
      parent::initContent();
      $this->setTemplate(_PS_THEME_DIR_.'anti-counterfeit.tpl');
    }
 
  /*  The following code portion is optional.
  /*  Remove the double-slashes to activate the portion
  /*  if you want to use external stylesheet and JavaScript for the page.
  /*  Create the CSS and JS files in the css and js directories of the theme accordingly
   */
   
    //public function setMedia(){
      //parent::setMedia();
      //$this->addCSS(_THEME_CSS_DIR_.'custom-page.css');
      //$this->addJS(_THEME_JS_DIR_.'custom-page.js');
    //}
    
}

Then the tpl in the theme folder (actually it is empty just a "test" text to be displayed (it works), but with both column, and I want none of them.

Edited by [email protected] (see edit history)
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...