Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement for Expand All User Macro Functionality?

Patrick Chen
Contributor
December 13, 2020

Hello,

We are transitioning to Confluence Cloud from Confluence Server.

A while back, on our Confluence Server we added the user macro "Expand All" per the community suggestions on this forum post: https://community.atlassian.com/t5/Confluence-questions/How-to-create-an-quot-Expand-All-quot-button-for-Confluence/qaq-p/294206

This has been widely used by our organization, which entered a lot of information into pages where they make use of the Expand macro and the "Expand All" functionality has become something they rely on.

It appears that Confluence Cloud does not have the same "User Macro" functionality as Confluence Server. Is there an alternative solution to the "User Macros" functionality, or other way we can get this "Expand All" capability again? 

Any guidance is appreciated. Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Champion
December 24, 2020

This thread has a work around that is not very graceful but gets the job done.  https://community.atlassian.com/t5/Confluence-questions/Can-I-toggle-expand-all-Expand-Macros-in-a-page/qaq-p/676272

Patrick Chen
Contributor
January 7, 2021

Thanks Brant. In lieu of a feature enhancement from Atlassian, it appears the Bookmark workaround is still viable and will be the best that can be done on Confluence Cloud. 

Here are the instructions and the Bookmark "URL" code snippet if anyone else needs it:

Create a Bookmark, name it "ExpandAll", and enter the following into the URL field: 

javascript:(function()%7B%24(".expand-control").each(function()%7B %24(this).trigger("click")%3B%7D)%7D)()

After creating the Bookmark, click it on any page with Expand macros to expand or collapse all instances.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events