Hot to add macros to a header, footer or sidebar?

Hi,

I noticed that I can customize the sidebar, header and footer in Confluence 5.10.

I would like to add a livesearch macro in the header, but when I paste this, it is displayed as such:

<ac:structured-macro ac:macro-id="eeede5a3-a0bd-4a99-b7ca-5aa3f5e8043b" ac:name="livesearch" ac:schema-version="1">
<ac:parameter ac:name="spaceKey">
<ri:space ri:space-key="bqc"/>
</ac:parameter>
</ac:structured-macro> 

 Any help with this?

 

Thanks.

1 answer

1 accepted

1 vote
Stephen Deutsch Community Champion Aug 11, 2017

You should be able to get it to work by inputting it in the old wiki markup format:

{livesearch:spaceKey=bqc}

The alignment might be off because the header is set to be center-aligned, but it should still work. 

I tried that with the Metadata 2 Plugin (https://comalatech.jira.com/wiki/spaces/META/overview), but the stuff is not rendering when I put for example this in the main.vmd file:

{space-metadata-from:Release-Version}

 

Do you have any ideas how to accomplish rendering stuff from the Metadata 2 Plugin in a Velocity file?

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

385 views 17 9
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