Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-31 11:46:56

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Using a different form for articles posted after today.

I am just redoing a large site with a lot of content where the old pages use very small images which aren’t flowing too well with the new design.

What I was planning was to keep the old forms with these articles & use a new form for articles posted after today by using a mixture of smd_if, smd_query & some variable action – but I do tend to over complicate these things :)

So I was wondering if there is possibly an easier way any one has used.

Ha – as soon as I posted – I found etc_date – could be the answer – I’ll have a play tomoz :)

Last edited by tye (2014-03-31 11:49:11)

Offline

#2 2014-03-31 12:52:47

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Using a different form for articles posted after today.

Yes, etc_date should do it:

<txp:etc_if_date date="posted" value="..2014-03-31" format="%Y-%m-%d">
	before
<txp:else />
	after
</txp:etc_if_date>

Offline

#3 2014-04-01 03:07:33

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Using a different form for articles posted after today.

perfect mr etc :) saved me a lot of heart ache there – thanks :)

Offline

Board footer

Powered by FluxBB