I have multiple Expand macros in a page that collects weekly meeting notes in a table. I use the Expand macros because the comments column can get very long and it creates a really long page. In order to reduce the long page, I can collapse the comments and it shrinks the rows.
However, I cannot do CRTL+F to find text within a collapsed section. Is there a way to expand and collapse all the Expand macros on a page in one click?
This would really improve my workflow. Also open to other creative suggestions.
I could imagine a button on top of the page called "Expand all" / "Collapse all"
This is how we solved it https://medium.com/@timcameron/expanding-all-in-confluence-db0d3cd711f0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ray,
Just barging in because Shannon is not around. I tried Tim's workaround and it worked for me in Confluence 6.8 and on Confluence Cloud.
Thanks,
Ann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For those who can't read Medium at work, make a bookmarklet with this URL
javascript:(function()%7B%24(".expand-control").each(function()%7B %24(this).trigger("click")%3B%7D)%7D)()
but replace : with a colon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This isn't working for me... Is there something that needs to be updated in the code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Had the same issue for Confluence Cloud. Edited the script slightly for the expand class:
javascript:(function()%7B%24(%22.css-15263az%22).each(function()%7B%20%24(this).trigger(%22click%22)%3B%7D)%7D)()
Bold for emphasis. Not sure if / how long that will work, but it is working for me because the "inspect" shows that as the expand class.
Additionally, got it to work for Edge browser manually as well:
Bookmark a favorite page, any page will do.
Right click to Edit
Change name to: Expand ALL
Change URL to: javascript:(function(){$(".css-15263az").each(function(){ $(this).trigger("click");})})()
Save
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's the new/correct script as per the latest naming of the class:
javascript:(function(){ $(".css-snhnyn").each(function(){ $(this).trigger("click"); });})()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ray,
Since this is not yet a feature, I went ahead and created the request for you:
Perhaps other users that happen upon your question will have other suggestions, but please feel free to vote and comment on that issue above with your usage case.
Kind regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's also another fix that doesn't rely on users having to add a button in the browser, instead the page author can add code on the page that will do it. I tested on a page in Server version 6.2.3 and it works. I'll also get our admin to create a custom macro so it will be available to all our users. It's in this community thread in the post from Ben Coughlan Nov 16, 2015 about inserting an HTML macro and using the code Ben provided:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For those on DC adding link for answered cross post:
How to create an "Expand All" button for Confluence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.