Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Why an expired article is listed as not expired
I am feeling silly, failing on the simplest task — moving an expired article to an archive.
When I put some <txp:if_expired> test words </txp:if_expired>
in an article’s excerpt, they are shown — indicating, that this article is expired. But the same article remains as still not expired on its section:
<txp:if_article_list><h3>Announcements</h3></txp:if_article_list>
<txp:if_expired> test: expired <txp:else /> test: not-expired <txp:article /> </txp:if_expired>
<txp:if_article_list><h3>Archive</h3></txp:if_article_list>
<txp:if_expired> test: expired <txp:article /> </txp:if_expired>
There is still only one article in that section for announcements (its Expired date set to past on Write: More in an admin panel). Publish expired articles? set to Yes on TxP advanced preferences. What I should also do? Or where I have made a mistake?
Last edited by Vienuolis (2009-09-23 16:33:35)
Offline
#2 2009-09-23 16:50:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Why an expired article is listed as not expired
The if_expired tag should be used in an article form, or inside <txp:article>...</txp:article>
tags. (or article_custom of course)
Offline
Re: Why an expired article is listed as not expired
Done, thanks for your help.
Offline