Adding a macro to a new page/blog post automatically

Hi All,

I have a rate macro I want to be on the bottom of all new pages and blogs that are created. Is there an easy way to achieve this?


2 answers

4 votes
David Simpson Community Champion Oct 12, 2011

If you're feeling adventurous, you could create a Confluence plugin that listens for page & blog creation events and appends the macro to the end of the page.

Failing that, consider adding it to the theme see /confluence/decorators/page.vmd & /confluence/decorators/blogpost.vmd in the Confluence installation directory for where youd add them.



Im having some trouble with that - in which section would the code be inserted? Have tried in the Page Specific Decoratoor and General Page Decorating with no luck... i've tried top add the code to every section (not at once) with no luck....


1 vote
David Simpson Community Champion Nov 15, 2011

Mark: I've done a quick (very rough) how to video for adding the macro to all page/blogpost decorators:

I hope this helps.

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

344 views 20 10
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