travisb Posted July 30, 2003 Posted July 30, 2003 Instead of showing the subcats when someone clicks a main cat, I want to show a specific page for the cat without showings the rows and columns of subcats. The subcats will only be found in the sidebar. Is there a way in index.php to see when parent_id = 0 to include a different page? If so, where would I add this? Or do you have a better solution? Thanks your help.
travisb Posted July 31, 2003 Author Posted July 31, 2003 Ok, I edited the categories.php file and made it so if parent_id = 0, change the href to a different page. That seems to work fine. Now I have a new question. When I am on that main category page, I want the subcategories to show up in the side nav. How can I tell it to show the subategories when I am on that page?
travisb Posted July 31, 2003 Author Posted July 31, 2003 I am having a hard time understanding how the code works. Where in categories.php is the code that determines whether or not to show subcategories for the selected main category?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.