I am trying to use the Excerpt macro to allow sections in one of my pages to be used by other pages i.e. creating a single source of truth.
I have successfully complete this task using Excerpt macro and pasting the text, etc in to the Excerpt.
example code:
<ac:structured-macro ac:macro-id="ae438f9a-2e5f-45b8-a49d-c4df6fce7104" ac:name="excerpt" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
<ac:rich-text-body>
<p>This is some text that <br/>I would like to replicate to other Confluence pages.</p>
</ac:rich-text-body>
</ac:structured-macro>
The Excerpt Include example code:
<ac:structured-macro ac:macro-id="550fdd51-f144-4cd4-975a-0cc4034daf53" ac:name="excerpt-include" ac:schema-version="1">
<ac:parameter ac:name="name">test2</ac:parameter>
<ac:parameter ac:name="nopanel">true</ac:parameter>
<ac:parameter ac:name="">
<ac:link>
<ri:page ri:content-title="Tech Tips"/>
</ac:link>
</ac:parameter>
</ac:structured-macro>
However, I would like to have multiple of the above on the SAME page!!
example code
<ac:structured-macro ac:macro-id="ae438f9a-2e5f-45b8-a49d-c4df6fce7104" ac:name="excerpt" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
<ac:rich-text-body>
<p>This is some text that <br/>I would like to replicate to other Confluence pages.</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<ac:structured-macro ac:macro-id="01070f14-6488-4495-90a6-faa9b2090188" ac:name="excerpt" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
<ac:rich-text-body>This is some additional text that I would like to replicate <br/>to other Confluence pages.</ac:rich-text-body>
</ac:structured-macro>
Now according to the links below, this is possible by creating unique names for each Excerpt on the page:
https://support.atlassian.com/confluence-cloud/docs/insert-the-excerpt-macro/
https://support.atlassian.com/confluence-cloud/docs/insert-the-excerpt-include-macro/
Any thoughts?
Hi @Mike Creed I'm not exactly sure what issue/problem you're trying to solve, could you clarify?
I've just tested the Excerpt and Excerpt Include macros and I was able to do the following:
I am wondering if it might be down to the version of Confluence we are running:
What version of Confluence did you test this feature on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahh this might a difference between server and cloud, I was testing on cloud. The documentation you linked is for cloud so I assumed you were also using cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.