Guide: Article, conditions for article updated_at | Community
Skip to main content

Guide: Article, conditions for article updated_at

  • September 23, 2021
  • 1 reply
  • 0 views

Hi!

I want to replace the "article.updated_at" text with "Recently updated" for articles newer than, e.g. 2 month and "Out of date" for articles older than e.g. 24 months, the rest can show it's specific date. I can do this with Javascript without any issues, but is it possible to do with the helper object as well? 

1 reply

Eric27
  • September 27, 2021

Hey Toby,

I'd suggest sticking with using Javascript for this. It will remain persistent in the case of breaking changes that could happen to the helper object.

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy