Nice plugin. And for a noob like me, I actually sort of got it working. Here is my problem and hopefully someone will be able to help.
I am using this for a three tier navigation. I have the tiers specified as categories. Example:
About Us (Tier 1/Template)
- HQ Location (Tier 2/Weblog)
- Contact Information (Tier 2/Weblog)
- - Email (Tier 3/Weblog)
- - Phone (Tier 3/Weblog)
- - Mailing (Tier 3/Weblog)
- Business Principles (Tier 2/Weblog)
Services (Tier 1/Template)
The page will have the tier 1 items across the top (never changes). Tier 2 and Tier 3 will be along the right side. Tier 2 on the top and Tier 3 on the bottom (using div within the templates)
Using the code below, when a person navigates to a Tier 2 page, the Tier 3 (child categories) appear in the bottom div on the right. The problem however, is once they have navigated to a Tier 3 page, the bottom navigation is now blank. From what I can understand and it makes sense, once they are on a tier 3 page; there are no child categories and therefor it will not show up. Is there a way using IF statements to have it where when they are on a tier 3 page it will continue to show the categories in the bottom div as if they are really on a tier 2 page? Remember I am using one template for both the Tier 2 and Tier 3 pages.
{exp:category_id category_group=“8” category_url_title=”{segment_2}” parse=“inward”}
{exp:child_categories parent=”{category_id}” site=“2” show_empty=“yes” entries_limit=“5” parse=“inward”}
{child_category_start}
{child_category_name}
{child_category_end}
{/exp:child_categories}
{/exp:category_id}
I saw something about using a sibling instead which seems to work when they on a a tier 3 but when on a tier 2 the page displays errors.
Notice: Undefined variable: parent_cat_description in /home/honourhe/public_html/hcsystem/plugins/pi.child_categories.php on line 474
Notice: Undefined variable: parent_cat_image in %SITEPATH%/plugins/pi.child_categories.php on line 475
Any ideas?