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>
<ac:rich-text-body>
<span style ="color:#02236a"><b>$!paramTitle</b></span>
<span style ="color:#02236a">$body</span>
</ac:rich-text-body>
</ac:macro>

Hier is an Example, how it should look like:

I hope you can help me.

Thank U,

Best regards,

Zoriana

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;ac:rich-text-body&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;
&lt;/ac:rich-text-body&gt;
&lt;/ac:macro&gt;

Let me know if it works.

Stephen

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.

Thanks

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,213 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot