Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Using a different form for articles posted after today.
perfect mr etc :) saved me a lot of heart ache there – thanks :)
Offline