Page 1 of 1

Show parent categories

Posted: Mon Jan 16, 2006 2:44 pm
by yellowled
Hi everyone,

I'm currently trying to make my template display not only the "child" category an entry belongs to but also the "parent" category - if that's possible in s9y at all?

My problem is to find the right (smarty?) variable to use for this. My "target" would be something like:
Written by YL in <child cat> (<parent cat>) ...
below any given entry.

Could someone please point me to the correct variable or tell me this isn't possible at all before I get mad browsing code I only partially understand? :wink:

Thanks in advance,
YL

Re: Show parent categories

Posted: Mon Jan 16, 2006 3:02 pm
by garvinhicking
This is not possible by default. You will need to perform additional DB queries to get the category parents, which is both not easy to do, and also not very performant.

Best regards,
Garvin