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>
    <ac:rich-text-body>
              Stuff
</ac:rich-text-body>
</ac:macro>

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

464 views 19 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