Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-16 10:18:34
- bhwalton
- New Member
- Registered: 2007-02-21
- Posts: 5
category list
i want to make a category list of only the categories that are present in one section. and excluded the other sections and their categories from the list.
can anyone help?
Thanks.
Ben
Offline
Re: category list
If you use txp 4.0.4 the solution is:
<txp:category_list section=“yoursection” />
Offline
#3 2007-04-16 17:25:47
- bhwalton
- New Member
- Registered: 2007-02-21
- Posts: 5
Re: category list
that code works but it also pulls categories that are connected to other sections. I am looking for something that excludes any categories that connect to sections that I am not trying to pull from
Offline
#4 2007-04-16 19:09:28
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category list
Textpattern cannot do that, because categories are not really meant to be ‘subsections’ (though I’m using them like that as well). There is a workaround: create a parent category with the name of the section, and call the child categories with <txp:category_list section="yoursection" parent="yoursection" exclude="yoursection" />
.
Offline
Pages: 1