You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
So I am using the HTML Macro at the bottom of my page and inserting the following code into the created HTML box. When I preview the page it looks great, but when I save it, all I see is the time stamp. My page content disappears Clearly I am doing something wrong but can anyone help me out?
|
What do you want to achieve?
Because, "document.lastModified" will not get you the last modification date of the page. It will get you the last modification date of the "HTML document type", not the document from confluence. You can use this javascript in any other page or even in the console of your browser.
If you want to get the date of the latest modification of the confluence page, then you need to write a user macro:
Regards, Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.