Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Category List
Hi the following code is to spit out a category list for my blog section, and also ONLY the categories in the parent cat Blog.
<ul>
<txp:category_list label="" parent="Blog" section="blog" sort="title asc" this_section="1" type="article" exclude="Blog" break="" form="cat_list" />
</ul>
the next bit of code is the form
<li>
<txp:category link="1" name="" type="article" url="0" />
</li>
The problem however is that its display the names instead of the titles? so like if the cat is Web Standards, it’ll show web-standards. Any ideas what the problem is ? Thanks
~ Cameron
Offline
Re: Category List
See txp:category and bookmark Tag Reference
Attribute: title="1"
Also, you don’t need to set defaults again, so you don’t need name=""
. Same goes for the type
and the url
.
Last edited by Gocom (2009-05-09 10:24:12)
Offline
Re: Category List
How come title=“1” isn’t on the tag builder in Textpattern itself? Fixed it thanks
As an add on though, how could I show the number of articles in the categories? so like Web Standards – 21
Last edited by driz (2009-05-09 10:31:11)
~ Cameron
Offline
#4 2009-05-09 11:40:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category List
driz wrote:
How come title=“1” isn’t on the tag builder in Textpattern itself?
It is (but like Gocom said, Textbook is a better reference):
As an add on though, how could I show the number of articles in the categories? so like Web Standards – 21
One way to do that is mdn_count.
Offline
Re: Category List
driz wrote:
As an add on though, how could I show the number of articles in the categories? so like Web Standards – 21
cbs_category_list
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Re: Category List
I’m not sure if this is a bug, but that form, when you choose title yes, it adds link=‘1’ to the tag??? shouldn’t it be adding title=“1” and not the link :S
~ Cameron
Offline
#7 2009-05-10 21:34:18
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category List
driz wrote:
I’m not sure if this is a bug, but that form, when you choose title yes, it adds link=‘1’ to the tag??? shouldn’t it be adding title=“1” and not the link :S
You are right, I think it’s a bug. I never use the tagbuilder so I never noticed it before. Since you discovered it, driz, would you mind posting it in the Developer support forum? ;)
Offline
Pages: 1