Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-15 11:27:43

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Output Unlinked Categories List

Hi,

How can I output an unlinked categories list, so it can be used in a tag like this:

<txp:category name=“category, category, etc.” />

Thanks!

Offline

#2 2011-02-15 11:50:17

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Output Unlinked Categories List

Hi

have you tried

<txp:category name='<txp:categroy_list parent="parent of the categroy list" break=","><txp:category /></txp:category_list>' />

nb: not tested

Last edited by Dragondz (2011-02-15 11:50:57)

Offline

#3 2011-02-15 19:30:39

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Output Unlinked Categories List

I think this will work better:

<txp:category_list categories="cat1,cat2,etcetera" break=","><txp:category /></txp:category_list>

Or, like Dragondz said:

<txp:category_list parent="parentcat" exclude="parentcat" break=","><txp:category /></txp:category_list>

Offline

#4 2011-02-16 01:33:09

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: Output Unlinked Categories List

Thanks, the two of you … exactly what was needed :)

Offline

Board footer

Powered by FluxBB