Question Regarding Overriding Date Module Output in Flex Block1

Posted in: Newspaper
Post count: 19

Hello,

I’ve been working on modifying the Date Module in Flex Block1 of the Newspaper theme. My goal is to display the last modified date instead of the published date using Code Snippets. I attempted to override the output by applying a filter to get_the_time(), but the changes are not taking effect.

After reviewing the Date Module’s code, I noticed that the render() method directly calls either get_the_time() or get_the_modified_date() based on the date_type attribute.

Could you please advise if there is a recommended way to override this behavior using Code Snippets alone?

Thank you very much for your help.

Best regards,

Post count: 27744

Hello,

You can use this option to show the modified date https://i.imgur.com/zsXYEv5.png

Thank you!

Post count: 19

Hello,
I apologize for overlooking the setting option.
Thanks for your quick response!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.