• 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

699 views 21 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