Guest Posted May 16, 2006 Share Posted May 16, 2006 Is it possible to have a 3 column homepage and 2 columns for the rest of the site? Many thanks in advance Sxx Quote Link to comment Share on other sites More sharing options...
convict Posted May 16, 2006 Share Posted May 16, 2006 index.php Replace $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl"); With $two_column_page = array ('viewDoc','viewCat','viewProd','unsubscribe','taf','login','logout', 'forgotPass','account','profile','changePass','newsletter','dnExpire'); if (isset($_GET['act']) && in_array(treatGet($_GET['act']),$two_column_page)) { $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl"); } else { $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index_home.tpl"); } Global template for Homepage - skins/<your skin>/styleTemplates/global/index_home.tpl Rest (cart except /2 columns anyway/) - skins/<your skin>/styleTemplates/global/index.tpl Quote Link to comment Share on other sites More sharing options...
Guest Posted May 16, 2006 Share Posted May 16, 2006 Thanks for the replies. It is now done, great!! 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.