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

This widget could not be displayed.
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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

403 views 4 6
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