Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-02-12 17:45:45

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,492
Bitbucket GitHub

[SOLVED] article_custom sanity check

Hi. I’m no doubt doing something completely inept, but this should only output expired articles, right?

<txp:article_custom category='<txp:output_form form="coupon_table_sections_select" />' expired="1" form="coupon_table_expiry_expired" limit="999" section="deals" sort="Expires asc" />

The coupon_table_sections_select form correctly chooses the right categories, so that’s working as expected, but all articles (expired and non-expired) are displayed. I have set expired articles to be published, in Admin -> Preferences. There is no if_expired tag in the coupon_table_expiry_expired form, because the article_custom takes care of business, right?

Any pointers very gratefully received. Thank you in advance.

Last edited by gaekwad (2013-02-13 17:23:34)

Offline

#2 2013-02-12 18:18:19

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: [SOLVED] article_custom sanity check

After a quick scan through the source, the logic appears to be:

  • expired="1" – include expired and non-expired articles in results.
  • expired ="0" – don’t include expired articles in results

So it looks like you’ll need the if_expired tag in the coupon_table_expiry_expired form after all.

Last edited by springworks (2013-02-12 18:18:40)

Offline

#3 2013-02-12 18:19:20

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,492
Bitbucket GitHub

Re: [SOLVED] article_custom sanity check

Steve, thank you very much – good spot!

Offline

Board footer

Powered by FluxBB