-
Suggestion
-
Resolution: Unresolved
-
122
-
16
-
Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.
NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.
👋 Hi - I’m a Divya Sriram, a PM on the Confluence team. I recognize that it's been a while since you've heard from the team, so I'm here with the update we owe you.
Solving the option to display expand macro expanded/collapsed on page load is on our priority list. Currently, we are focused on critical work to improve table formatting and performance for Confluence Cloud pages - problems that are also affecting a very broad pool of users.
We hope to start working on this soon and acknowledge that the delay on implementing this feature is frustrating for many of you. We will keep you updated on our progress.
Thank you,
Divya
We should have an option to default expand macros to open/closed on page load. Text is not searchable from closed expand macros on page load.
There is a large amount of feedback/comments on both of these pages relating to additional functionality surrounding this highly used macro.
https://confluence.atlassian.com/display/DOC/Expand+Macro
https://confluence.atlassian.com/display/DISC/Expand+Text+User+Macro
- is related to
-
CONFCLOUD-54831 Expand macro expanded/collapsed default state
- Gathering Interest
-
CONFCLOUD-61867 Auto-expand Expand macros when coming from a link
- Gathering Interest
-
CONFSERVER-27077 Option to display expand macro expanded/collapsed on page load
- Not Being Considered
- is action for
-
ENT-2860 Loading...
- mentioned in
-
Page Failed to load
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
[CONFCLOUD-27077] Option to display expand macro expanded/collapsed on page load
There are ~29 related suggestions related to the Expand macro per this query, (~ "expand macro" AND project in ("Confluence Cloud", "Confluence Data Center") AND Issuetype in (Suggestion) AND status not in (closed)).
Of that set, there is one with 966 votes that has graduated to "Under Consideration" status: CONFCLOUD-78513: Nest Expand or other Bodied Macros in another Macro
This one, CONFCLOUD-27077, only has 525 votes.
However, if it were combined with these, it could graduate to Under Consideration :
- CONFCLOUD-54831: Expand macro expanded/collapsed default state, 208 votes
- CONFSERVER-27077: Option to display expand macro expanded/collapsed on page load, 453 votes
It would be nice if collapsed sections were still searchable by the browser's "Find" function.
Hi 5dd6d3cdd988
Is there any update on this requirement?
Maybe the requirement should be (for cloud or non-cloud version):
- be able to open and close all expand-sections on both open or edit status on each page => especially when having (workshop)calls with teams to align on further functionalities and all open questions per functionaltiy/requirment
- also define the default-behaviour: open or closed on open-page or edit-page (seperately setting would be ideal)
- ideal would be in any stage (open or edit page) => open or close all expand-sections with a shortcut (and button)
Are there maybe other tickets related to this requirement that are indeed actively being working on (which we dont see related to this ticket)?
Thank you for the update! (i hope this can be solved in 2024! : ) )
It's been nearly 2.5 years since the last status update which stated this feature was a priority. When can we expect this to be released?
I was going to add a suggestion essentially requesting this same feature. The only thing I'll add is that I imagined this option as being a configuration to the macro itself in the same way that some other macros have additional configuration options. I think others have mentioned similar ideas.
Looking forward to seeing this feature appear on Confluence Cloud soon. Ideally it would be an expand/close all toggle for the page. Can I also suggest that the macro is functional within the edit view too. The default behaviour of opening all of the collapsed elements in the edit view can be quite jarring, and being able to toggle them all closed, then select the element you wish to edit would be a much nicer workflow.
@alex medved, just create a new browser bookmark, rename it to whatever you need (calling mine "Expand"), and paste the code. Screenshot here https:// ibb.co/6Hf81Q6
How can you do that on Confluence cloud? I mean, how and where can you use the javascript like that?
I was able to make it work using this:
javascript:(function(){document.querySelectorAll("[data-node-type='expand']").forEach(function(node)
{node.querySelectorAll("button")[0].click();})})()
Richard Uppheim - you're probably using the new editor? The javascript from Medium works for me on the legacy editor, but not on the new editor
Hmm...followed the suggestion on Medium and tried the various javascript URLs suggested in the comments. However, in my Confluence cloud it doesn't seem to expand/collapse sections.
@glenn Truly amazing, thanks a lot ! I'm not familiar with Javascript so was unable to update it myself. You're correct about the "subject to change" : The code on Medium not only expands the expand sections in the page's body, but also the left navigation bar, and the right help bar ! Is that the same result on your side as well ?
Your own code is neat and completely functional as of today, only expands the page's body sections, as expected :
javascript:(function(){document.querySelectorAll("[data-node-type='expand']").forEach(function(node){node.querySelectorAll("button")[0].click();})})()
@sasha
I wasted too much time on this - lol - but updated to match current Confluence Cloud (subject to Atlassian changing things again at any time)
javascript:(function() {document.querySelectorAll("[data-node-type='expand']").forEach(function(node)
{ node.querySelectorAll("button")[0].click();})})()
Only to see in the comments of https://medium.com/@timcameron/expanding-all-in-confluence-db0d3cd711f0 someone already gave a modified version. Lol
Hello there, quick poke to ask a question:
https://community.atlassian.com/t5/Confluence-questions/Expand-macro-How-to-Expand-all-on-Confluence-page/qaq-p/2150104
https://medium.com/@timcameron/expanding-all-in-confluence-db0d3cd711f0
Previous solution bought here doesn't work anymore. I used to work with this when I was working for Wise (formerly Transferwise), but on my current ConfCloud instance it's broken.
Any idea how this could be repaired ?
{{}}
javascript:(function()%7B%24(%22.expand-control%22).each(function()%7B%20%24(this).trigger(%22click%22)%3B%7D)%7D)()
Kind regards !
At the very least, when searching a page for text, all the Expand items where the text is found should auto-expand. As such Confluence would require a text search option with the context set to the page being searched. Since it is highly unlikely Atlassian will ever address this, we will settle for some way to expand all text. Anyway, hopefully Confluence will do with way of browsers, one day someone will appear on the scene with a new wiki and overnight Confluence will be gone. Good night Atlassian.
Hello! Are you working on this issue? It will be very useful to have it in place. thanks!
This would be very useful as currently is there is content behind a collapsed window its hidden from page search results (ctrl + f) so it would be very helpful to be able to expand all sections to allow on-page search to work.
Hi guys, please implement this feature as using the Table of Contents is useless when dealing with large pages with many expands in it. Even if we need to set each one manually, I'd take that over it doing absolutely nothing.
we had a workaround on server and are really missing this functionality in cloud
The code on the pages has changed since this bug was opened many years ago so the bookmarklet workaround needs updated. This works for me in confluence cloud (replace : with : ), hope this helps anyone else stumbling in here.
javascript:(function()%7Bdocument.querySelectorAll(%22%5Bdata-node-type%3D'expand'%5D%5Bdata-expanded%3D'false'%5D%22).forEach(e%3D%3Ee.querySelector(%22button%22).click())%7D)()
Upvote. As part of this, I'd like to see the option to expand/collapse all expand on a page at once. Example: I want them all collapsed by default so I only see high-level information if that's all I need when visiting the page. However, if I need to dive further into the details, I'd want to expand all of them at once. This would/should open up the searching ability as others have said.
Ditto what others said. The in ability to search collapsed content is the primary issue. The ability to just expand all/show all/collapse all would also be useful.
Additional config options:
- Heading styles: I would love to option to associate heading styles (h1, h2, h3) with the expand macro title. This would enable the option to include expand/collapse titles in an index or toc. It would also support the ability to link to a specific expand item as you might a heading.
- Formatting: ability to format the expand item, similar to what you can do with the panel macro would be useful.
Also adding interest for the expand all option. We're also impacted by the inability to search collapsed content.
Being able to expand pages nested under other pages in one go without clicking through them is important for us
Not being able to search within all content (whether expanded or not) is a major drawback for my colleagues and I, and if it isn't fixed soon, we may need to find another platform.
...via advanced search or just via the web-page search - therefore the need for a simple expand/collapse, so we dont need to manually expand all sections on the page.
Ability to search within collapsed content via advanced search is a key requirement for us to continue using this feature.
No solution for adding to a page for everyone to use. But for personal use - I have a bookmark with the following URL:
javascript:(function()%7B%24(%22.expand-control%22).each(function()%7B%20%24(this).trigger(%22click%22)%3B%7D)%7D)()
When I am on a page I want everything expanded on - I select the bookmark. Select again to collapse all.
Is anyone using a workaround for this that actually works? All of the ones I've found in forums do not. Thank you!
Thank you for the update Divya! Looking forward to the release of this feature.
We also would need to link from the ToC into a collapsed expand macro. The legacy requirement would be, to keep the expand macro collapsed but links from ToC and somewhere else should be working.
Additionally to searching in a collapsed area would be useful.
I had to come here to figure out why my ToC couldn't link my headings inside of an Expand macro, when they were showing up in the ToC. This should be basic functionality.
Paul Streng solution may work well, but it requires the HTML macro from the market place; no good for us - I'm unable to add marketplace add-on's to our site. Would prefer a "Confluence" solution
I found this and works nicely.
<a id="toggleAll" href="#">Expand/Collapse All FAQs</a> <script type="text/javascript"> AJS.toInit(function () { AJS.$('#toggleAll').click(function() { jQuery(".expand-control").each(function()
{ jQuery(this).trigger("click");}) }); }); </script>
Just add to an HTML macro at top of each page.
+1 Recently upgraded from Server to Cloud and this is a real PITA for us.
noticed that the internal confluence page has the expand sections collapsed as default, but same page on the service desk (customer facing portal) has the sections expanded by default... configuration per expand block would be great. i didn't see the refined UI Expand macro available for confluence cloud.
+1. This is a huge request for our teams. And without the ability to search non expanded content, it is a real blocker in their workflow! Is there any update on this, as it looks like it has been a suggestion for a few years with no movement.
Thanks!
@Jonno Katahanas You greatly improved /expand native functionality late last year, but left this out. The feature is incomplete / limited in use until there is an option to toggle show/hide by default. Right now, I only bother using on content that should be hidden by default–otherwise I run the risk of hiding meaningful content!
UI Expand macro (https://docs.refined.com/display/rwui/UI+Expand) has this functionality but it would be great if the builtin Expand macro were able to do this.
5 years later and no nearer to this being a thing - I think we can count this as "things that will never happen" guys.
+1
Use Case: For onboarding a new person in a role, we have checklists per week. When loading the page, I'd like to have the weeks they've done already open collapsed, and the weeks they haven't done already open uncollapsed. I'd be happy with a manual toggle for show/hide per expand-box. Thanks!
+1 - seems like a simple enough fix to implement. Would be extremely useful.
+1
Amazing people at Atlassian,
Please make this one happen. The macro is not complete without all configuration exposed. I use this quite a bit in my day to day work and kept on researching if there any way to do this and stumbled upon this JIRA.
Confluence is already awesome, please make it more awesome by adding this missing feature.
A simple "expand all on page" button seems like an easy fix for the problem where control+F doesn't find text inside a collapsed expand macro.