johnnyosc Posted February 1, 2003 Share Posted February 1, 2003 How would you remove the the left column only for the first page on the default? But then have it available for the second and third page of the default.php file. Since I'm using a javacript menu for my header, i dont want the left column to show up when first entering the site but i do want it to show for the categories pages and productinfo pages and so forth. Any ideas??? Thanks.... JohnnyOSC. Link to comment Share on other sites More sharing options...
apodigm Posted February 1, 2003 Share Posted February 1, 2003 This is just an idea... there are probably several ways to do this... I would make a copy of 'default.php' and name it 'index.php'. Then edit index. php to remove the lines: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> Since all the links in "index.php" will still point to "default.php" anything that a customer clicks will move them into that page. Then just make sure that index.php has a higher priority than default.php. I think that is a setting in the apache conf. I'm using IIS so for me it is found in the web configuration panel. Link to comment Share on other sites More sharing options...
johnnyosc Posted February 1, 2003 Author Share Posted February 1, 2003 how would you set that in apache config? Link to comment Share on other sites More sharing options...
hobbzilla Posted February 1, 2003 Share Posted February 1, 2003 Try: <!-- left_navigation //--> <?php if ($cPath != '') { require(DIR_WS_INCLUDES . 'column_left.php'); } ?> <!-- left_navigation_eof //--> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.