Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
alternatives to sed_copyright_date
I’ve been using sed_copyright_date for so long I stopped noticing it, but it doesn’t seem to have survived the move to 4.2.0
<txp:sed_copyright_date date_type='end' end_year='now'/></b> -> <b> Textpattern Warning: tag does not exist on line 1120</b>
I only ever used it to output the current year, so I guess a lick of php would probably cover it. Does anyone know how to do it?
cheers
Stu
Offline
Offline
Re: alternatives to sed_copyright_date
pieman wrote:
I’ve been using sed_copyright_date for so long I stopped noticing it, but it doesn’t seem to have survived the move to 4.2.0
Weird, works on my 4.2.0 site. Both the sed_copyright_date and sed_copyright tags. But either way the PHP equivalent is:
<txp:php>
echo date("Y");
</txp:php>
EDIT: and of course Gocom’s faster and more accurate because he owns the space-time continuum
Last edited by Bloke (2009-09-25 21:09:09)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: alternatives to sed_copyright_date
blimey, that was quick!
much appreciated :)
Offline
Pages: 1