Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-04-21 20:17:53

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

[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" />.&ensp;<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" />&ensp;bis&ensp;<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

#2 2012-04-21 20:31:05

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

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

Board footer

Powered by FluxBB