Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#76 2008-04-29 16:57:04
- Alfie
- Member
- Registered: 2007-11-06
- Posts: 40
Re: Subsections
but.. but.. how did you do that! thats exactly what i wanted!!!!!!!!!
i too have used the “zoo_section_and_category_list plugin” but never managed to get it to “contact/expand” as im not that clued up on exactly how txp works yet apart from the basics!!!
Alfie
Offline
Re: Subsections
I used a single basic tag for my nav. Here it is:
<txp:zoo_section_and_category_list wraptag="ul" break="li" active_class="active" cat_class="cat" class="menu" cat_active_class="active" include_default="1" default_title="home" showall="0" label="Menu" labeltag="h4" sections="Home,Programma,Contatti" />
To have this working, you may need my modified version of the plugin, or not. It depends on the actual attributes you use, and if you want the categories in a nested list instead of a flat list as in the original version.
Since all the work has been made by Arne Krueger, I mantained the name and added a ‘b’ in my version. You can download it here.
In the help I tried to explain my modifications. For the scope of our usage, all that matters is that I made the categories appear in a nested list and take care of adding an “active” class to the actual cat list item (and not to the link) and of avoiding autolinks. You can sort the categories in different ways using the new “sort_cat” attribute.
Let me know if this works.
Z-
Offline
#78 2008-04-30 08:11:49
- Alfie
- Member
- Registered: 2007-11-06
- Posts: 40
Re: Subsections
Amazing, will be trying this out ASAP. Been looking for a solution like this for ages but just cant get my head round coding anything for myself, and i’ve been building websites since i was 12! (now 23).
If this works ill owe you one!
Alfie
Offline