Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
minor change suggestion for our main site
textpattern.com/ states:
Well over a decade of development has been lovingly poured into our CMS.
which is technically correct but shouldn’t it change to
Well over 15 years of development has been lovingly poured into our CMS.
Alternatively we could use <txp:fha_time_diff />
or possibly <txp:evaluate />
using this untested construct which is possibly wrong
<txp:evaluate query='<txp:php>echo safe_strftime("%Y");</txp:php> - 2003' />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: minor change suggestion for our main site
If someone can just verify the code you suggested works, i will amend the site accordingly. Thanks.
Offline
Re: minor change suggestion for our main site
I just tested it in an article on the production release demo site and an my latest beta and it works just fine returning 17
. Note that in a textiled article you might need to use
==<txp:evaluate query='<txp:php>echo safe_strftime("%Y");</txp:php> - 2003' />==
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: minor change suggestion for our main site
Will add this next week then. Cheers!
Offline
Re: minor change suggestion for our main site
Probably this will suffice, no need to evaluate:
<txp:php>echo safe_strftime("%Y") - 2003;</txp:php>
Offline
Re: minor change suggestion for our main site
This suggestion is now live on the homepage, thanks!
Offline
Re: minor change suggestion for our main site
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline