Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[SOLVED] article_custom: no output of expired articles
hi forum,
i have a problem with article_custom: it doesn’t parse expired articles although set to time=“any”. here is the code:
<h1 class="four columns alpha">Ausstellungen</h1>
<txp:article_custom wraptag="div" class="twelve columns omega clearfix" section="ausstellungen" time="any">
<div class="row exlistrow">
<div class="four columns alpha exlist image" >
<txp:images limit="1">
<txp:permlink>
<txp:smd_thumbnail type="start" />
</txp:permlink>
</txp:images>
</div> <!-- exlist image column 1-->
<div class="four columns exlist column_1">
<h3 class="extitle"><txp:permlink><txp:custom_field name="Lfd_Nr" />. <txp:title /></txp:permlink></h3>
<p><em><txp:custom_field name="Kurzbeschreibung" /></em></p>
</div> <!-- exlist column 2 -->
<div class="four columns omega exlist column_2">
<p><b><txp:posted format="%d.%m.%Y" /> bis <txp:expires format="%d.%m.%Y" /></b></p>
<p><txp:custom_field name="Galerie" /></p>
</div> <!-- exlist column 3 -->
</div> <!-- row -->
</txp:article_custom>
and here the tag trace:
<txp:article_custom wraptag="div" class="twelve columns omega clearfix" section="ausstellungen" time="any">
[SQL (0,000414848327637): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('ausstellungen') order by Posted desc limit 0, 10]
any hints why? your help is much appreciated.
thanks, christoph
EDIT: it doesn’t accept the time attribute at all. if i set it to time="past"
it still outputs only article with expiry date in future :-(
Last edited by totoff (2012-04-21 20:30:22)
Offline
Re: [SOLVED] article_custom: no output of expired articles
sorry forum, i simply forgot to set settings accordingly … i go home to bed now.
Offline