gregultra Posted December 10, 2013 Share Posted December 10, 2013 (edited) So, with some help from the forum, i can get rid of the left column on the manufacturer-list only, by modifying the ManufacturerController.php A little problem : how can i change the width of the center column now? I doubt i can do it in CSS, since manufacturer and manufacturer-list have the same ID. Can i do it in ManufacturerController.php? Edited December 11, 2013 by gregultra (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 10, 2013 Share Posted December 10, 2013 in initcontent() function in FrontController.php if (isset($_GET['id_manufacturer'])){ $this->context->smarty->assign('manufacturerpage',true); } then in template file in body class="" section you can use: {if $manufacturerpage} manufacturerpage {/if} then you can use in css styles definition for center clumn: .manufacturerpage #center_column {width:99999px;} Link to comment Share on other sites More sharing options...
gregultra Posted December 10, 2013 Author Share Posted December 10, 2013 -i put if (isset($_GET['id_manufacturer'])){ $this->context->smarty->assign('manufacturerpage',true);} in : classes/controller/FrontController.php - then {if $manufacturerpage} manufacturerpage {/if} in <body class=" "> in the header.tpl -then try to change via CSS, but it's not working.Am i putting it in the right tpl? Link to comment Share on other sites More sharing options...
gregultra Posted December 10, 2013 Author Share Posted December 10, 2013 when i check the code for the manufacturer page, i get this : " <body id ="manufacturer" class=".manufacturerpage"> and on manufacturer list : "body id="manufacturer" class=" "> Link to comment Share on other sites More sharing options...
gregultra Posted December 10, 2013 Author Share Posted December 10, 2013 I am sooooo dumb ; it's manufacturer page who gets the new class, not the list. Thanks Vekia. Sorry to bother you, I'm gonna bury my head in the sand for 1000 days ; Link to comment Share on other sites More sharing options...
vekia Posted December 10, 2013 Share Posted December 10, 2013 so, the problem is solveD? Link to comment Share on other sites More sharing options...
gregultra Posted December 11, 2013 Author Share Posted December 11, 2013 yeah o/ Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 thank you for confirmation i marked my topic as a solution for this problem with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now