Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Double if

#1 2009-10-28 00:30:51

Malize
Member
From: Barcelona
Registered: 2007-08-28
Posts: 77
Website

Double if

Stupid issue with having <txp:if_category> two times.

The thing is: I’m building a gallery in www.dazigned/com.

In /ilus page I have a list of thumbnails (using rss_thumbpop plugin), displaying both categories: “Comercial” and “retratos”. The thing is that I need a <txp:if_category> to display each category, but it seems that thumbpop doesen’t support having as category <txp:category /> (so I need to have 2 <txp:if_category>, which seems impossible, and doesn’t work at all).

Any thoughts?

Last edited by Malize (2009-10-28 00:31:42)

Offline

#2 2009-10-28 07:48:50

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

Re: Double if

Don’t know what you need exactly, but all of these should be possible:

  • <txp:rss_thumbpop category='<txp:category />' /> (but the category attribute defaults to the current category, so leaving it out is exactly the same)
  • <txp:rss_thumbpop category="comercial,retratos" />
  • <txp:if_category name="comercial,retratos">...</txp:if_category>

Last edited by els (2009-10-28 07:50:45)

Offline

  1. Index
  2. » How do I…?
  3. » Double if

Board footer

Powered by FluxBB