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

Shawn Wilson August 29, 2017

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 votes
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 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
TAGS
AUG Leaders

Atlassian Community Events