Is there a way to use the Expand Macro and have the page always Expand by Default?

Stacey Shearn March 18, 2019

I have a page that I would like to show all of the Expand/Collapse as Expanded. Right now, when visiting the page, they all show as Collapsed.

2 answers

1 accepted

0 votes
Answer accepted
Thomas Bowskill
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.
March 19, 2019

Hi @Stacey Shearn , not with the Atlassian Expand macro, but there is a free plugin called Refined Toolkit, which has a UI Expand macro with the property that lets you have it default-expanded (and the expand generally looks nicer).

 

If you are the admin / can convince your admin then I recommend giving it a shot

Stacey Shearn March 19, 2019

Thank you for the help Thomas!  I will look into this solution, and check with our Admins. One of the things that was suggested was to have a button (or something clickable) that would expand everything on a particular page.  I will check out this solution and see if it does that as well.

Thomas Bowskill
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.
March 19, 2019

Best of luck with that @Stacey Shearn -- I did have a few similar tools I have created but were a bit 'hacky' and ended up with the HTML macro being used, which generally has the downfall of being too custom (with Confluence I've found it always best to have as much standardisation as possible). When I installed Refined Toolkit it eliminated these custom hacks I had made -- they also have button macros.

Just to double check -- do you use the Table of Contents macro much? As it could be another way of solving your issue: put that at the top of your pages and then people will have clickable hyperlinks to the section they need -- I use these on most my lengthy documents, and expand is reserved for code snippets, or data that not everyone needs to skim past.

and P.S. if the answer helps, there should be something like an 'Accept this Answer' button

Like # people like this
Stacey Shearn March 22, 2019

I like the Table of Contents answer!  I will try that!  Thank you Thomas!

Steffen Heller
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.
June 7, 2019

I have a similar question:

I need to create a PDF of the UI expand macro with all the menus expanded. Right now, the menus are all closed when I export even if they were expanded before exporting.

So, the question is not how to expand the menus but how to keep that setting when exporting.

Any ideas?

I figured the macro works with javascript. Simply deactivating javascript in the browser did not work. Doing that, the whole page would disappear for some reason.

Adding a custom javascript button to expand all menus could perhaps work. But I don't see a way to add javascript to my page as I don't seem to have any macro for that.

Stefan Kopec August 24, 2021

Refined Toolkit, which has a UI Expand macro is not free any more. Verified August 2021.

Like Luke likes this
0 votes
Stefan Kopec August 24, 2021

 Refined Toolkit, which has a UI Expand macro is not free any more. Verified August 2021.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events