Hi all,
Currently I'm using a macro to retrieve the version of a page by using $content.version in a macro.
I have tested a duplicate of this macro writing $content.name.
Bad guess, it failed.
How can I retrieve the name of the current page?
Moreover, where could I find a documentation about $content and its attributes and methods?
Best regards,
Richard
Hi Richard Coffre
Try $content.getTitle()
$content is actually ContentEntityObject and you can use all the methods available.
These links may be helpful for you.
https://confluence.atlassian.com/doc/user-macro-template-syntax-223906130.html
Regards
Prakhar
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.