Hi, I am trying to get the ID of a specific "blueprint page template" to be able to dynamically insert it in the macro "Create from template".
This is the XHTML of the macro:
<ac:structured-macro ac:name="create-from-template"> <ac:parameter ac:name="templateId">81887264</ac:parameter> <ac:parameter ac:name="buttonLabel">My template label</ac:parameter> <ac:parameter ac:name="templateName">81887264</ac:parameter> </ac:structured-macro>
There is an object that can give me this information?
Something like TemplatesManager.getTemplateFromKey("key")?
I tried with "PluginAccessor", "PageTemplateManager", "SpaceManager" and "SettingsManager" but I was unable to retrieve the information from any of these.
Thanks!
Community moderators have prevented the ability to post new answers.
https://confluence.atlassian.com/display/DOC/Create+from+Template+Macro
for a blueprint, it maybe enough to have the blueprintModuleCompleteKey
However, there is also a BlueprintManager (com.atlassian.confluence.plugins.createcontent.actions) which you could try: https://maven.atlassian.com/service/local/repositories/atlassian-public/content/com/atlassian/confluence/plugins/confluence-create-content-plugin/4.0.24/confluence-create-content-plugin-4.0.24-sources.jar
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.