Home : Products : Gossamer Links : PHP Front End :

Products: Gossamer Links: PHP Front End: showing 'father' category in related@ links: Edit Log

Here is the list of edits for this post
showing 'father' category in related@ links
Is there any way to [easily] show the top level (father) category in the Yahoo-style related@ category titles? The reason I ask is because I have several related categories under different main categories that have the same names. For example:

Clubs
--- US - West

Triathlon
--- Clubs
--- --- US - West

Makes sense within the context of each category, but when you add related categories to the list (which I very much like the addition of in v2.x), you get something like:

Clubs
--- US - West
--- --- US - West@

Triathlon
--- Clubs
--- --- US - West
--- --- --- US - West@

Which is a bit confusing, needless to say. What I would like to do is change that US - West@ to something like Clubs > US - West@ to signify it's part of another top level category. Listing all intermediate category levels in the title would not be necessary and would only clutter the display.

So, the question is how to accomplish it... function generate_category_page() in Page.inc.php obviously plays a role, as does function _print_cat() in Utils.inc.php (the short name portion) and subcategory.html's <?if ($Related) {?>@<?}?>, but I don't see any way off hand to conditionally alter the short name for related categories.

Any ideas?

Thanks,
Dan

Last edited by:

Dan Kaplan: Jul 3, 2002, 11:38 AM

Edit Log: