Confluence 4.1 how to use macros in template,

Another issue i have with 4.1 over 3.5 confluence.

I have a template that uses macros, specifically the visio macro

{visio:file=^classesmethods 1.vsd|width=500|height=500|pageTabs=true}

If i create a page from this template, the macro is contained in Wiki Mark-up rather than just adding the macro.

This means it cannot be configured correctly.

How do you add macros in 4.1 to templates?

Thanks

2 answers

1 accepted

0 vote
David Simpson Community Champion Jan 12, 2012

This should work as normal. Provided that the macro is Confluence 4.x compatible, it won't get wrapped in the wikimarkup macro.

For example a template containing this

{children:page=Home}

...will work just fine when you build pages based off of it. In this case, the Home page does need to exist though ;-)

In your case, the {visio} macro need to be Confluence 4.x compatible and it will likely throw an error as new pages don't generally have attachment when first created.

-- Hope this helps a bit.

Thanks, that explains it. The macro works in every other way, just not via the template. cheers

Adding to the question - so how do you add a premade macro to a template? I'm in 4.1, would like to create a global template that includes the Attachments macro so my users don't have to figure it out for themselves. I can't see what's inside the Attachments macro, and the global template edit mode wants only wiki markup - so I'm stuck. Help would be appreciated!

-Claire

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 Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

423 views 79 11
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