Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-21 00:31:00

scottcal
Member
From: Encinitas, CA
Registered: 2010-09-04
Posts: 21
Website

Print a list of categories as plain text

I’m trying to print out a comma separated list of categories. Is it possible to do this, maybe even select it directly from the database and print it out with <txp:php>?

Offline

#2 2012-10-21 00:43:19

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

Re: Print a list of categories as plain text

<txp:category_list break=","><txp:category title="1" /></txp:category_list>?

Offline

#3 2012-10-21 00:51:30

scottcal
Member
From: Encinitas, CA
Registered: 2010-09-04
Posts: 21
Website

Re: Print a list of categories as plain text

wow that was so simple. Thanks for solution. Now I feel dumb though. ha ha

Offline

#4 2012-10-22 06:21:29

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Print a list of categories as plain text

Learn one txp:tag a day and TXP dumbness goes away :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB