Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-01 12:55:43

RipvanFish
Member
Registered: 2009-07-09
Posts: 35

Listing articles sorted by custom but just display the value once

Hi everybody,

it is me again, it is a stupid question again:

I have a form that returns a list of articles, sorted by two customfields.
In case there is more then just one article with the same value for customfield 2,
I want TXP to display the value just (<txp:custom_field name=“time”>) ONCE for the same value at the first
article shown with this value.

The articles are sorted like that:

<txp:article_custom section="test" category="content" form="testform" sort="custom_1, custom_2" />

hope it is clear what my problem is and someone is willing to help me out a little

regards,

rip :)

Last edited by RipvanFish (2009-09-01 12:57:24)

Offline

#2 2009-09-01 14:11:06

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: Listing articles sorted by custom but just display the value once

Just use if_different:

<txp:if_different>
  <txp:custom_field name="time">
</txp:if_different>

Offline

Board footer

Powered by FluxBB