I want to access metadata set on a page in a user macro, but no idea as to what the object name and methods would be.
Community moderators have prevented the ability to post new answers.
You can also access some of the meta data that Confluence puts on a page via Javascript (which can be in a user macro). The method is ..
AJS.Meta.get("key");
The key part is what is in the meta tags on the page minus the "ajs-". So for instance if the meta tag is
<meta name="ajs-remote-user" content="dstuder">
You could get the value via ...
AJS.Meta.get("remote-user");
You can see all of the available ones via...
AJS.Meta.getAllAsMap();
Hello David,
Can you explain with more details?
I would like to acces metadata in content of a page with a macro like that
$page.getmetadata(FieldName)...
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, here is a table with accessible objects for Confluence: https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity
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.