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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,166 views 5 10
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