Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[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
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
Re: [SOLVED] article_custom sanity check
Steve, thank you very much – good spot!
Offline
Pages: 1