• 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
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,944 views 27 12
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