Icon in user macro Confluence 5.4

Hi everybody,

I have a question and I hope you can help me. I have written my own macro. It is like an Info-Macro, but it should be a little bit different and it should include another icon. My question is, how can I include this icon into my macro? https://srv-kastor-14.psad.de/confluence/download/attachments/352387585/aufrufezeichen.pngIt should stay before a title.

Hier is my code:

<ac:macro ac:name="panel">
<ac:parameter ac:name="borderStyle">solid</ac:parameter>
<ac:parameter ac:name="borderColor">#02236a</ac:parameter>
<ac:parameter ac:name="borderWidth">2</ac:parameter>
<span style ="color:#02236a"><b>$!paramTitle</b></span>
<span style ="color:#02236a">$body</span>

Hier is an Example, how it should look like:

I hope you can help me.

Thank U,

Best regards,


1 answer

1 accepted

Hi Zoriana,

It would probably look something like this:

&lt;ac:macro ac:name="panel"&gt;
&lt;ac:parameter ac:name="borderStyle"&gt;solid&lt;/ac:parameter&gt;
&lt;ac:parameter ac:name="borderColor"&gt;#02236a&lt;/ac:parameter&gt;
&lt;ac:parameter ac:name="borderWidth"&gt;2&lt;/ac:parameter&gt;
&lt;img src="https://srv-kastor-14.psad.de/confluence/download/attachments/352387585/aufrufezeichen.png"&gt;
&lt;span style ="color:#02236a"&gt;&lt;b&gt;$!paramTitle&lt;/b&gt;&lt;/span&gt;
&lt;span style ="color:#02236a"&gt;$body&lt;/span&gt;

Let me know if it works.


Hi, thank U very much. It works. It was so simple.

Hi Stephen, I have another question:

I use hier a Panel-Macro and while converting the page with this macro to pdf it looks like a panel and my formatting (in my macro) will not be applied (in pdf). I wanted to adopt my macro in content formatting in template, but I don't know how should it be done. I have already tried a lot of variants but it does not work.


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
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
Read article

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