Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-10-03 14:19:12
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
Create structured link-category page
Our link library has been growing unstoppable, so we are trying to create some order within the chaos :)
Is there a way to generate a page with all the link-categories, where sub-categories are listed under the parent?
Example:- A
- B
- B.1 (parent B)
- B.2 (parent B)
- C
Offline
#2 2009-10-03 22:05:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Create structured link-category page
Something like this?
<txp:category_list type="link" children="0" break="">
<h3><txp:category title="1" link="1" /></h3>
<txp:category_list type="link" parent='<txp:category />' exclude='<txp:category />' wraptag="ul" break="li">
<txp:category title="1" link="1" />
</txp:category_list>
</txp:category_list>
Offline
#3 2009-10-05 20:24:17
- Custom
- Member
- Registered: 2006-04-05
- Posts: 14
Re: Create structured link-category page
At first, the children attribrute didn’t seem to give the expected result.
After updating to version 4.2.0 it worked like a charm :)
Thx alot!
Offline
#4 2009-10-05 21:07:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Create structured link-category page
It was introduced in 4.0.7 :)
Offline
Pages: 1