As template autor author we can select the name of the blueprint. Since template autors authors work on the XML Storage Format of Confluence, it looks like this: Code Block |
---|
| <ac:structured-macro ac:name="create-from-template">
<ac:parameter ac:name="blueprintModuleCompleteKey">de.smartics.atlassian.confluence.smartics-projectdoc-confluence-space-devdiary:projectdoc-blueprint-doctype-todo</ac:parameter>
<ac:parameter ac:name="createResult">edit</ac:parameter>
<ac:parameter ac:name="buttonLabel">Create Todo</ac:parameter>
</ac:structured-macro> |
The blueprint module complete key is specified and therefore the correct blueprint wizard wizards is selected if a user clicks on the button. If you create the button by hand, it looks like this: Code Block |
---|
| <ac:structured-macro ac:name="create-from-template">
<ac:parameter ac:name="blueprintModuleCompleteKey">de.smartics.atlassian.confluence.smartics-projectdoc-confluence-space-devdiary:projectdoc-blueprint-doctype-todo</ac:parameter>
<ac:parameter ac:name="contentBlueprintId">798abbd6-0c5c-4c77-ab8d-29514419e910</ac:parameter>
<ac:parameter ac:name="templateName">798abbd6-0c5c-4c77-ab8d-29514419e910</ac:parameter>
<ac:parameter ac:name="createResult">edit</ac:parameter>
<ac:parameter ac:name="buttonLabel">Create Todo</ac:parameter>
</ac:structured-macro> |
Confluence adds the content blueprint ID and the template name by their instance ID. This seems to make it possible for the Create-from-Template Macro to show the correct Blueprint blueprint also in the editor. Since we do not know these instance IDs at the time of writing the doctype, we cannot add them. We are working on improving the user experience on this, but currently there is no better solution to this. |