Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-24 18:09:12

nemozob
Member
Registered: 2008-04-15
Posts: 36

Conditional tests for category1 and category2

In the default install of TXP the categories associated with each article show up as follows:

category1, category2

The problem is that if that, say, a second category hasn’t been chosen you end up with a the first category and then a comma and nothing else.

Is there a conditional to test to see if the 2nd category exists before printing the comma?

Offline

#2 2008-06-24 18:28:06

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

Re: Conditional tests for category1 and category2

Plugin: chh_if_data.

Offline

#3 2008-06-24 18:57:01

nemozob
Member
Registered: 2008-04-15
Posts: 36

Re: Conditional tests for category1 and category2

yup, thanks so much!

Offline

Board footer

Powered by FluxBB