Expand Macro in Background Macro
Asked by Malena Arduino:

I need the expand macro to be a child of the background macro, meaning I want the expand macro to exist inside the background macro. How can I do this? Currently that feature is not allowed - whereas the tabs macro is allowed...


Answers:
author: Rodrigo
body: Hello [@Malena Arduino](/t5/user/viewprofilepage/user-id/5278830), and welcome to the Atlassian Community!

Are you using the Background macro from Adaptavist's [Content Formatting Macros](https://marketplace.atlassian.com/apps/247/content-formatting-macros-for-confluence?tab=overview&hosting=cloud&utm_source=Cloud&utm_medium=%20Get-Started&utm_campaign=docs.adaptavist.com)?

Generally speaking for the Cloud, there are special considerations for "Complex Macros" (also called "Rich bodied macros") as these sometimes do not like to be nested, and unfortunately, there is not much developers can do to change it (as Confluence Cloud is very different to on-premise).

In case it is the macro from Adaptavist, you can check their documentation where they list macro combinations and possible workarounds. In the case of the expand macro, a suggestion is [placing said macro within a table first.](https://docs.adaptavist.com/cfm4cc/latest/macros/background#:~:text=Excerpt%20Include-,Expand,-If%20you%20wish)

* [Content Formatting Macros - Put other macros inside](https://docs.adaptavist.com/cfm4cc/latest/macros/background#:~:text=the%20Trash%20icon.-,Put%20Other%20Macros%20Inside,-It%20is%20possible)

Hope this helps!  
Rodrigo

comments: author: Malena Arduino
body: Hi Rodrigo - Thank you for your response. I ended up not using the expand tool.


author: Zoriana Bogutska_Adaptavist_
body: Hi [@Malena Arduino](/t5/user/viewprofilepage/user-id/5278830)

My name is Zoriana. I'm a product marketer from Adaptavist. It is very important for us to know your needs and requests for [Content Formatting Macros.](https://marketplace.atlassian.com/apps/247/?utm_source=Atlassian-Community&utm_medium=referral&utm_campaign=Comment_Expand-Macro-in-Background-Macro_20230824) Particularly, this one about the expand macro nesting is something that other users are asking about as well. So maybe we can find a workaround by creating a built-in function that allows you to hide additional content like expand macro.

But to know more about your use case and inform you when we have this feature ready - please contact our customer success manager Abi [abrown@adaptavist.com](mailto:abrown@adaptavist.com).

Let me know if you have any other questions.

Kind Regards

Zoriana

P.S. [@Rodrigo](/t5/user/viewprofilepage/user-id/4988097) Thank you very much for your great help with explaining how our app works!


author: Zoriana Bogutska_Adaptavist_
body: [@Malena Arduino](/t5/user/viewprofilepage/user-id/5278830)[@Malena Arduino](/t5/user/viewprofilepage/user-id/5278830)

We're happy to announce that we've released an advanced macro that can be nested within background and tab macros!

What's more, you can even put it inside table cells (which is not possible with Confluence's built-in functionality).

![Advanced Expand - Nesting Tabs_V1.gif](https://community.atlassian.com/t5/image/serverpage/image-id/304057i5A42BA6B3EABF2A8/image-size/large?v=v2&px=999 "Advanced Expand - Nesting Tabs_V1.gif")

Let us know if you have any questions or need help.


Tags: cloud

confluence-cloud