• Community
  • Products
  • Confluence
  • Questions
  • Is there any possibility to switch the type (for example from warning to info) on an existing block without creating a new one and copying the content of the old one?

Is there any possibility to switch the type (for example from warning to info) on an existing block without creating a new one and copying the content of the old one?

roman_baeriswyl November 6, 2015

This question is in reference to Atlassian Documentation: Info, Tip, Note, and Warning Macros

Is there any possibility to switch the type (for example from warning to info) on an existing block without creating a new one and copying the content of the old one?

1 answer

1 accepted

1 vote
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2015

Yes, it is very possible.  You have two options:

  1. Click on "Edit" to get to the macro options, click the "Select Macro" link in the bottom left corner, choose the new macro, and you should now have the same text but in the new macro.
  2. If you have the Confluence Source Editor installed, then you can update all the macros on a page in one go.  Open the source code (by clicking the <> button), search for something like: ac:name="warning" (for the warning macro) and replace with: ac:name="info" (for the info macro).  Then simply apply the changes and you should be good to go.

 

roman_baeriswyl November 8, 2015

Great thank you! Absolutely didn't see the "Select Macro" link. As for the second option, there's also an ac:macro-id which is different. I guess that one should be adjusted as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events