Does the Combination with 'Table of Content'-Macro does not work anywhere?

This question is in reference to Atlassian Documentation: Panel Macro

We use this 'Panel Macro' in Combination with the 'Table of Content' macro in Confluence 5.8.13.

When we use this, all the Text after the macro is handled as the Text is placed in the macro-Body. In the Body of the macro (in a single page) we place only the 'Table of Content'-Marco, nothing else.

In Confluence 5.6.6 this worked pretty well. For me it seems to be a Problem in the macro 'Table of Content'.

Does anyone use it also this way and have a solution for this?

Thanks for a reply.
Roman

3 answers

1 accepted

Sure.

Standard Panel: use of the Standard Panel-Macro

Confluence_Standard_Panel.png

Pre-Formatted Panel: use of the preformatted Panel.
Created according to documentation-page: https://confluence.atlassian.com/conf58/panel-macro-771892397.html

Confluence_Formatted_Panel.png

I'm afraid I don't understand what you mean by "pre-formatted."

That is a user-defined macro that i created on base of the following documentation-page:

https://confluence.atlassian.com/conf58/panel-macro-771892397.html

Please post the code of your user macro.

The macro is rendered and the code is:

## @param Title:title=Title|type=string|desc=Title
<ac:structured-macro ac:name="panel">
         <ac:parameter ac:name="titleBGColor">#ccc</ac:parameter>
          <ac:parameter ac:name="borderStyle">solid</ac:parameter>
          <ac:parameter ac:name="borderColor">#6699CC</ac:parameter>
          <ac:parameter ac:name="borderWidth">2</ac:parameter>
          <ac:parameter ac:name="titleColor">#000000</ac:parameter>
      <ac:parameter ac:name="title">$!paramTitle</ac:parameter>
      <ac:rich-text-body>$body </ac:rich-text-body>
</ac:structured-macro>

 

Thanks for your help

That code is not showing, therefore without the code-macro:

 

## @param Title:title=Title|type=string|desc=Title
 <ac:structured-macro ac:name="panel">
         <ac:parameter ac:name="titleBGColor">#ccc</ac:parameter>
         <ac:parameter ac:name="borderStyle">solid</ac:parameter>
        <ac:parameter ac:name="borderColor">#6699CC</ac:parameter>
        <ac:parameter ac:name="borderWidth">2</ac:parameter>
        <ac:parameter ac:name="titleColor">#000000</ac:parameter>
    <ac:parameter ac:name="title">$!paramTitle</ac:parameter>
    <ac:rich-text-body>$body </ac:rich-text-body>
</ac:structured-macro> 

Yeah, I don't see anything wrong. What happens when you wrap the code in a div?

Unfortunatly no difference. I've tried pretty much variant, but with no Change.

I have now donloaded the confluence-Version 5.9.12 and installed it. Wow, here the Problem is gone. Therefore i do not want to invest more time in that. I will migrate our Production-Server as soon as possible to Version 5.9.12 or 5.10. So this Problem is fixed.

Thanks for your help. Regards, Roman

Can you give us a screenshot of what you are seeing?

Does onyone else have such a Problem or am i the only one?

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 yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

29 views 0 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