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

Re: [Dan Kaplan] showing 'father' category in related@ links

Quote Reply
Re: [Dan Kaplan] showing 'father' category in related@ links In reply to
I think this question is general enough to go into the regular Links SQL discussion and you'll probably get more responses that way. It's been a while since I worked on the front end, and I haven't played with related categories that much, so I'm not too familiar with related categories now.

Here's an idea: For each category you know it's father id, and you know whether or not that category is a related category. So if it's a related category, perform a lookup on it's father id to get its name. A global or just putting it in the template could work.
<?if ($Related) { [perform lookup]; echo "$father_name $Short_Name" ... } else {?>...

Adrian
Subject Author Views Date
Thread showing 'father' category in related@ links Dan Kaplan 4041 Jul 3, 2002, 11:38 AM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3968 Jul 3, 2002, 12:59 PM
Post Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3956 Jul 3, 2002, 3:37 PM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
brewt 3958 Jul 4, 2002, 12:17 AM
Post Re: [brewt] showing 'father' category in related@ links
Dan Kaplan 3951 Jul 4, 2002, 8:28 AM
Thread Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3898 Aug 12, 2002, 10:44 AM
Post Re: [Dan Kaplan] showing 'father' category in related@ links
Dan Kaplan 3870 Aug 12, 2002, 10:40 PM