We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Revolution 2.2
Search
Output filter 'ago'
67 Posts
jcamachott
Reply #1,
13 years, 4 months ago
Does anyone use the output filter 'ago'? I'm pretty sure it did not behave like this before but its not displaying the date efficiently e.g.
Clearly the '2 weeks' after the '10 months' is redundant...also the '4 hours' after the 4 days. Why is it doing this?
Any ideas?
Thanks in advance.
24,544 Posts
BobRay
Reply #2,
13 years, 4 months ago
It's just being accurate. The event was 10 months + two weeks ago.
Looking at the code, it doesn't appear that you can modify the output in any way, but you could write your own custom output modifier(s) based on the 'ago' code.
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting