Can't put link or tags in a User-macro panel heading

My user macro uses this code to insert a panel:

<ac:macro ac:name="panel">
        <ac:parameter ac:name="titleBGColor">lightyellow</ac:parameter>
        <ac:parameter ac:name="borderStyle">solid</ac:parameter>
        <ac:parameter ac:name="borderColor">#6699CC</ac:parameter>
        <ac:parameter ac:name="borderWidth">1</ac:parameter>
        <ac:parameter ac:name="titleColor">#000000</ac:parameter>
       <ac:parameter ac:name="title">This is a link to "$!contentTitle" in the $spacetitle.</ac:parameter>

I'd like the "title" to contain a link to another page, but when I put in a link, it doesn't appear (nor does any of the text after it). The same thing occurses if I try to format the title text with <em> or <strong> tags.



1 answer

1 accepted

0 votes
Accepted answer
Stephen Deutsch Community Champion Aug 31, 2017

Hi Shawn,

The title attribute only accepts text, so you can't include any HTML tags and expect that they will be processed.

If you really need to have a link, what I would recommend is to leave out the title completely and just simulate it with HTML in the rich-text-body.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

156 views 3 5
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