Icon in user macro Confluence 5.4

Deleted user May 19, 2014

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
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.
May 19, 2014

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

Deleted user May 19, 2014

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

Deleted user June 3, 2014

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
TAGS
AUG Leaders

Atlassian Community Events