• 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?

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
Accepted answer
Stephen Deutsch Community Champion Nov 06, 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.

 

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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,051 views 16 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you