Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-27077

Option to display expand macro expanded/collapsed on page load

    • 105
    • 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.

      Status Update 3 Feb 2022

      👋 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

            [CONFCLOUD-27077] Option to display expand macro expanded/collapsed on page load

            jmarcyon added a comment -

            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.

            jmarcyon added a comment - 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.

            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

            Christine Diamond added a comment - 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, CONF CLOUD -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 CONF SERVER -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.

            Trent Boorman added a comment - It would be nice if collapsed sections were still searchable by the browser's "Find" function.

            Yannic De Baets added a comment - - edited

            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! : ) )

            Yannic De Baets added a comment - - edited 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?

            Xavier Amador added a comment - 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?

            Mike Kosh added a comment -

            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. 

            Mike Kosh added a comment - 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.

            David Kidger added a comment - 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.

            Sasha added a comment - - edited

            @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

            Sasha added a comment - - edited @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?

            Alex Medved {ConfiForms} added a comment - How can you do that on Confluence cloud ? I mean, how and where can you use the javascript like that?

            b90b63142108 

            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();}

            )})()

            Raquel EZQUERRO BERMEJO added a comment - b90b63142108   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();} )})()

              Unassigned Unassigned
              rgoodwin Ryan Goodwin (Inactive)
              Votes:
              536 Vote for this issue
              Watchers:
              252 Start watching this issue

                Created:
                Updated: