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
Oh dear me. Okay thank you for that. I guess I am gonna have to learn :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.