Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

showing 'father' category in related@ links

Quote Reply
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
Subject Author Views Date
Thread showing 'father' category in related@ links Dan Kaplan 3982 Jul 3, 2002, 11:38 AM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3909 Jul 3, 2002, 12:59 PM
Post Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3896 Jul 3, 2002, 3:37 PM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
brewt 3898 Jul 4, 2002, 12:17 AM
Post Re: [brewt] showing 'father' category in related@ links
Dan Kaplan 3892 Jul 4, 2002, 8:28 AM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3838 Aug 12, 2002, 10:44 AM
Post Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3810 Aug 12, 2002, 10:40 PM