I get how to MANUALLY add macro tab/tabs to the page, but how do i achieve this through api? I'm already using task macro so... i get <ac:task-list> blahblah but there is not much of help for tab/tabs. does anyone know how to do this? I even tried to manually add macro tab/tabs to a page and view source code to find how to add tab/tabs by code. but that didn't really help because it had macro-ids created already. (which is randomly created everytime i think)
I went on hours trying to figure this out but i couldn't..
this is as close as i got. but this won't show me tabs at all.
I need help in inserting macro tab/tabs or some other way to add tab/tabs to confluence wiki through api.... please help....
so this is what i'm doing in steps.
Hi,
there needs to be an
<ac:rich-text-body>
within the outer ui-tabs-macro:
<ac:structured-macro ac:name="ui-tabs" ac:schema-version="1">
<ac:rich-text-body>
<ac:structured-macro ac:name="ui-tab" ac:schema-version="1">
<ac:parameter ac:name="title">Tab1</ac:parameter>
<ac:rich-text-body>
<p>Text 1</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:name="ui-tab" ac:schema-version="1">
<ac:parameter ac:name="title">Tab2</ac:parameter>
<ac:rich-text-body>
<p>Text 2</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
Andi when you use the API you should put the whole storage format into one line (my experience). And you don't need the macro-id.
Greetings,
Volker
Hi @Volker Weinreich Thanks for describing solutions using Rest API.
For people who are less technical are available ready-to-use solutions for Tab macro from the marketplace. One of them for example Content Formatting Macros for Confluence (created by my team)
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.