Automatic date created and date changed on a webpage (stack or snippet)


(Ilanguak Olsen) #1

Hi - I would like to add a functionality to my web page that automatically stamps the creation date - and subsequently changes the ‘last changed’ date too!
Does a stack or snippet exist that can handle this functionality?


(LJ) #2

Joe Workman’s Tardis stacks should do this. Maybe overkill however as it does other things also and therefore costs a bit extra. https://joeworkman.net/rapidweaver/stacks/tardis/


(Will Woodgate) #3

Try this:

Page last updated: %last_published%

That’s what I use in my themes. RapidWeaver replaces %last_published% with the date the page was last modified. No need for extra stacks, plugins or PHP code. I believe the macro works anywhere in the page. It will be localised to your locale (e.g mm/dd/yy or dd/mm/yy), based on your system preferences for dates.


(Ilanguak Olsen) #4

Thank you very much for the reference. I’m looking into it now and it seems to do it for me.


(Ilanguak Olsen) #5

Thanks Will, .-- elegant and easy. Just one of the nice tips and hints I’m looking for.


(Wondrous) #6

Will, thanks for code, but is it possible to make the year show up fully (as dd.mm.yyyy)?