Best way to handle repetitive, formatted blocks of same text?

Hi Sarah and everyone else.

Kicking some nice (6 point) goals with Confluence :-)

If we want to have the same formatted text over and over again, what would be the best way? I started teaching myself macros, but the user permissions needed made our sys admins shudder. But I've got temp access.

Anyway, picture a Tip macro with everything pre-filled in and the user should have nothing to select, except the Macro from the list. And then it shows the nice green box with the fixed text "You should back up this file before editing, then restart the server after you have..." etc.

update: should add, I've dived into Storage Formats already so am comfortable with that level of answer.

4 answers

Hello,

Actually, since version 4.0 is quite simple to have and use the same formatted text, so basically is necessary jut copy and paste the text and you'll have the same foramtted text, because in current versions the application copies as invisible markup so that's the reason you can simply copy the formatted text just doing Ctrl+c and Ctrl+V to another page.

Please try this and feel free to ask!

I guess you would find Page template in handy if you use same format over and over again. You could even put some macro in there.

Hi all. Thanks for the answers. I ended up creating a User Macro (as a test) that invoked the existing Tip Macro, with some values pre-filled in. It works, but needs fine tuning (see notes at end)

## @noparams
  
<ac:macro ac:name="tip">
<ac:rich-text-body>
<p>You should take a back up copy of this file before editing it</p>
</ac:rich-text-body>
</ac:macro>

Notes

It's not exactly complex, but it works as proof of concept. Gave it a Name and Title, plus Category = Confluence Content and Macro Body Processing = Rendered

User sees text "You should take..." in the Preview (when adding the Macro to the Page) but NOT after the Macro added to the Page. Again, I'm sure some tinkering could get around this.

Anyway might help someone else.

You could make a page of just the tip, then use the Include Page macro everywhere you want to add that tip. The added advantage is that like the macro, you can modify the Tip page and all the pages that use it will be automatically updated, and you don't need special privileges to do the page->Include Page method.

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 ...

902 views 23 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