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
Accepted answer
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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,126 views 17 14
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