Wendy James Posted March 25, 2006 Posted March 25, 2006 Hi : ) I think I have seen this somewhere but I haven't been able to find it again. I am working on a site and the way the layout is they want to direct link to one particular category which is no big deal, but they do not want that category to show up when in any of the other categories. The way I think would be best to do this is have a php page written with the links to the categories on it. Easy to code the links, only a few categories so the category box isn't needed... but I am unsure how to hide it on the category they want to keep seperate. I believe it should be something like if on index.php?cPath=28 show Category Name else show links.php but I am not sure exactly how that would be written and everything I have tried has caused errors. Anyone able to give me a hint? Thanks! Wendy Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Guest Posted March 25, 2006 Posted March 25, 2006 perhaps there is a relatively easy and elegant way to do this and the code is available from a contribution. 1. Install the enable/disable categories contribution 2. Place the links for the disabled categories where you want. (like you could retrieve the categories list, those disabled, with an sql query, pretty much like the contribution does for enabled categories.) And this does not have a restriction on a single category. You can have as many as you like.
Wendy James Posted March 25, 2006 Author Posted March 25, 2006 Thanks, I saw that contribution but was trying to do it without adding it. Guess since yours was the only suggestion I am going to have to though as I still haven't figured it out. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.