Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-28 05:36:48

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

break an article list by categories?

Hi,

In an article list (inside a section) I want to achieve something like this:

List of Products with no special characteristic
product 1
product 2
product 3
product 7
product 11

Products with some special characteristic A
product 4
product 5
product 9
product 11

Products with some special characteristic B
product 6
product 8
product 10

I thought this could be achieved with txp:article and some category attribute. But txp:article doesnt support category attribute.
So, in a second approach, I thought about doing it with txp:article_custom, because it supports category attribute, but it’s not section sensitive…
emmm…

Thinking loud again: “but it supports section attribute, so you can combine section attribute with category attribute to achieve what you want”.
Mmmm…

But, going back to txp:article, I bet I can do it by filtering with keywords or customfieldname="value"

Does anyone know another way? or does anyone tested any of the above?
Thanks.

Last edited by maniqui (2006-03-28 05:37:11)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-03-28 23:34:35

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: break an article list by categories?

chh_article_custom is worth checking

Offline

#3 2006-03-28 23:48:20

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: break an article list by categories?

Could you sort by category (with <txp:article sortby="Category1" />), then use <txp:if_different> to produce the various headings like “Products with some special characteristic B”?

Last edited by KurtRaschke (2006-03-28 23:48:59)


kurt@kurtraschke.com

Offline

Board footer

Powered by FluxBB