Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't use user-install macro as wiki markup?

Kateryna July 7, 2014

I developed macro, and in confluence page it works perfect.
But, when I try to use my macro in Documentation Theme Configuration (header or footer) - as wiki markup, I always receive 'Unknown macro: {back-button}'.

Code:
<xhtml-macro key="confluence-back-button-macro" name="back-button" ... >
I try to use "confluence-back-button-macro" and receive 'Unknown macro: {confluence-back-button-macro}'.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 7, 2014

The Documentation theme uses wiki markup, whereas Confluence macros that are written for Confluence 4.0 and above do not support wiki markup.

There are 2 things you can try to get your macro working in the Documentation Theme header.

1. Try wrapping your macro in a user macro -- easiest. The user macro may work OK in the header.

2. Re-write your <xhtml-macro /> as an old fashioned <macro /> -- harder. Then base the Confluence 4+ <xhtml-macro /> off the Confluence 3.5 & below <macro />

Try with the user macro wrapper first - it's much easier and might just work ;)

TAGS
AUG Leaders

Atlassian Community Events