2015-09-09

joebaich wrote #293957:

I wonder if you are confusing Category 1/Category 2 with Parent Category/Child Category. If Reisen is the parent category and Deutschland, Frankreich etc are child categories then see Els’ TXP tip here.

Here it is from one of my sites which lists cars for sale by Marque in the navigation. This one excludes ‘empty’ parent Marques categories that have no Car child categories

<nav>...

Hi joebaich,

Thank you for your tips and detailed example of your solution for an “active” site navigation.

To be honest, I’m still a beginner with Textpattern… but I didn’t see to mix sth. up with Categories and Parent/Children.

I simple came from the Textpattern backend => Content | Write [Sort and display]… where I can select a value from the picklist for “Category 2” for an article: my intention is to show the choosen value for “Category 2” in a kind of “sub navigation” sorted below the “top level” navigation as given with the choosen value for “Category 1”, e.g.:

This code generates the linked “sub navigation” Schwarzwald in my top navigation => “Reisen” | “Deutschland” |…

I tried sth. out without using Category2 in order to get the children shown in the navigation, e.g. “Deutschland” is configured as the parent of “Schwarzwald” in Textpattern… but unfortunately, I don’t get “Schwarzwald” shown with category_list structures alone.

Show more