Guest Posted December 2, 2004 Share Posted December 2, 2004 Hi All, On a new installation of osC I am trying to change the default layout for the home page, as the standard box of New Prods does not fit the type of product we are selling. The site is for trade show exhibitors to purchase their spot on the trading-floor. I really like the layout used by index.php?cPath=## -- I understand this is calling a category directly by id number, but the layout works very well for our purposes ... take a look: Good: http://biotech-calendar.com/catalog/index.php?cPath=21 as opposed to this: Bad: http://biotech-calendar.com/catalog/index.php Is there a way to make this layout (which is called from /includes/modules/product_listing.php) the deafult for index.php? As I know that index.php requires a cPath call to produce the above layout, is there perhaps a way to force this variable "21" in the event that no other $cPath variable is being called? I'm sure there is a fix for this somewhere. TIA Kevin Mc. Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2004 Share Posted December 2, 2004 If you are using MS2, then the answer to your question is easy ( :blush: ) Find line 480ish in includes/application_top.php. Should look something like below: } else { $cPath = ''; } Replace with... } else { $cPath = '21'; } Where 21 is the id of the category which you want to make the **default**. i.e. if not category id is supplied, it will show category 21. madpah :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2004 Share Posted December 2, 2004 That was way too easy! ... and it worked PERFECTLY! Thanks!!!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.