Guest macjs Posted December 8, 2007 Share Posted December 8, 2007 I used to be able to create a new template for the homepage in v.3 but I can't figure it out in v.4. Does anyone know where I can point the homepage to a new template - index_home.tpl ? Thanks! :dizzy: Quote Link to comment Share on other sites More sharing options...
Guest macjs Posted December 9, 2007 Share Posted December 9, 2007 Please? Anyone? I know this has to be a top question, but for version 4 there are no answers (that I can find). If this answer is posted somewhere, please help me find it. I've searched for 'different homepage' and 'different index page' already. Thanks~ Quote Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2007 Share Posted December 16, 2007 I'm trying to figure this out too for v4, I had it for v3 but the code is so much different I'm not sure where to start. I think that these two files play a big role in the skin selection index.php and includes/global/index.inc.php I've done some tinkering around but I'm no php coder so it's been trial and error and I haven't gotten anywhere. Maybe if we all work on this together we can get it solved. Jen Quote Link to comment Share on other sites More sharing options...
Guest macjs Posted December 20, 2007 Share Posted December 20, 2007 hi Jen, I did get this working, here's the fix: Change the includes/global/index.inc.php file by modifying the following: Replace $body = new XTemplate ("global".CC_DS."index.tpl"); with: if(isset($_GET['_a'])) { $body = new XTemplate ("global".CC_DS."index.tpl"); } else { $body = new XTemplate ("global".CC_DS."home.tpl"); } Then make sure you have your home.tpl file in the skin directory (or whatever you want to call it). Quote Link to comment Share on other sites More sharing options...
eriknv Posted April 25, 2008 Share Posted April 25, 2008 I want for every category a different template. Is that possible? Quote Link to comment Share on other sites More sharing options...
Guest MissBlythe Posted May 9, 2008 Share Posted May 9, 2008 I used to be able to create a new template for the homepage in v.3 but I can't figure it out in v.4. Does anyone know where I can point the homepage to a new template - index_home.tpl ? Thanks! Hi! Check here: http://www.cubecart.org/forums/uploads/dsc...-1137231740.txt Hope this helps, - Patricia Quote Link to comment Share on other sites More sharing options...
Guest ElectricStudio.co.uk Posted May 16, 2008 Share Posted May 16, 2008 Hi! Check here: http://www.cubecart.org/forums/uploads/dsc...-1137231740.txt Hope this helps, - Patricia Very nice! :yeahhh: Quote Link to comment Share on other sites More sharing options...
eriknv Posted June 6, 2008 Share Posted June 6, 2008 I want for every category a different template. Is that possible? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.