There won't be an admin setting for this, but it will be a simple modification to (I think) /includes/templates/your_template/templates/tpl_categories.php. I would have to check on that to make sure.
By "index page", do you mean the home page only? All of the pages that show categories are "index" pages, in Zen Cart's terminology, so it can be confusing.
For home page use, wrap the following code around whatever you want to control:
PHP Code:
if ($this_is_home_page) { //execute only on home page
... [ code ] ...
} //execute only on home page
-------
There is an even simpler way to do this, using CSS. First, you will need to correct a typo in /includes/templates/template_default/common/tpl_main_page.php (and in your custom copy if you have one). Around line 41,
PHP Code:
$body_id = ($this_is_main_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
change the "main" to "home":
PHP Code:
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
This may have been corrected in the source since I downloaded my test copy nine months ago; I am sure it is correct in the currently available version 1.3.7.1.
So, that taken care of, add to your stylesheet
Code:
#categories {display: none;}
#indexHome #categories {display: block;}
and the categories sidebox will display only on the home page.
Bookmarks