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

Option to display expand macro expanded/collapsed on page load

    • 106
    • 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

            Ability to search within collapsed content via advanced search is a key requirement for us to continue using this feature.

            Sally Whitehead added a comment - Ability to search within collapsed content via advanced search is a key requirement for us to continue using this feature.

            Celine Penaredondo added a comment - - edited

            +1

            If I can vote 500 times, I will. 

            Celine Penaredondo added a comment - - edited +1 If I can vote 500 times, I will. 

            Larry Ross added a comment -

            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.

            Larry Ross added a comment - 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! 

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

            Eddie Jauregui added a comment - Thank you for the update Divya! Looking forward to the release of this feature. 

            A. Krei added a comment -

            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.

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

            tabithar added a comment -

            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.

            tabithar added a comment - 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

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

             

            Paul Streng added a comment - 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

            +1

            +1

            +1

            +1

            +1

            Will Peterson added a comment - +1 +1 +1 +1 +1 +1

            Definitely needed.  

            Paul Streng added a comment - Definitely needed.  

            +1 Recently upgraded from Server to Cloud and this is a real PITA for us.

            Christa Meck added a comment - +1 Recently upgraded from Server to Cloud and this is a real PITA for us.

            +1

            +1 - showstopper issue for us

            Tim Harville added a comment - +1 - showstopper issue for us

            +1 This is very much needed.

            shaun.titus added a comment - +1 This is very much needed.

            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.

             

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

            Adam Sassatelli added a comment - - edited

            +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! 

            Adam Sassatelli added a comment - - edited +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! 

            Ahmed Aly added a comment -

            Please add

            Ahmed Aly added a comment - Please add

            Diego (Inactive) added a comment - https://community.atlassian.com/t5/Confluence-questions/Ability-to-expand-all-dropdowns-within-a-confluence-article/qaq-p/1476782

            +1

            Craig Brown added a comment - +1

            @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!

            Zack Foster added a comment - @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!

            +1

            BrandonDude added a comment - +1

            Hans added a comment -

            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.

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

            You're killing me here...

            Mike Starrs added a comment - You're killing me here...

            +1

            +1000

            Anna Cardenas added a comment - +1000

            plus one

            Raphael Albrecht added a comment - plus one

            It seems like such a simple thing, and it would be so helpful!

            Tatiana Norman added a comment - It seems like such a simple thing, and it would be so helpful!

            5 years later and no nearer to this being a thing - I think we can count this as "things that will never happen" guys.

            Ben Francis-Neun added a comment - 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

            Shane Duan added a comment - +1

            +1

            Hi 

            Any update on this?

             

            Thank you

            Andy

             

            YUAN-HSUN TANG added a comment - Hi  Any update on this?   Thank you Andy  

            +1 Yes Please why does it take so long?

            Mark Robinson added a comment - +1 Yes Please why does it take so long?

            Yes please.

            Joshua Vosper added a comment - Yes please.

            C.J. Leth added a comment -

            +1 

            C.J. Leth added a comment - +1 

            +1

            +1

            +1

            Toan Nguyen added a comment - +1

            +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!

            Nils van Kleef added a comment - +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 Atlassian, this seems easy to implement. Please add this

            Ole Kværnø added a comment - +1 Atlassian, this seems easy to implement. Please add this

            +1 - seems like a simple enough fix to implement. Would be extremely useful.

            Armen Forget added a comment - +1 - seems like a simple enough fix to implement. Would be extremely useful.

            +1

            Amir Jangodaz added a comment - +1

            Vlad added a comment -

            +1

            Vlad added a comment - +1

            +1

            Brian Brown added a comment - +1

            +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.

            Jayesh Modha added a comment - +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.

            Wow 102 votes .... must be a contender now its in triple digits.

            Michael Roff added a comment - Wow 102 votes .... must be a contender now its in triple digits.

            Martin H. added a comment -

            +1

            Martin H. added a comment - +1

            +1

            Raphael Feng added a comment - +1

            rmuhzin added a comment -

            +1

            rmuhzin added a comment - +1

            A search for a collapsible section ( starts expanded but can be hidden ) lead me here. An option on the existing EXPAND macro for starts expanded would cover this.

            Andy W. Desplenter added a comment - A search for a collapsible section ( starts expanded but can be hidden ) lead me here. An option on the existing EXPAND macro for starts expanded would cover this.

            +1

            Wendy Mungovan added a comment - +1

            This would be a great enhancement.

            Jason Steen added a comment - This would be a great enhancement.

            +1

            Arthur Nigro added a comment - +1

            "Text is not searchable from closed expand macros on page load." YES PLEASE THIS FEATURE

            ryan harvey added a comment - "Text is not searchable from closed expand macros on page load." YES PLEASE THIS FEATURE

            Agreed - this would be a nice feature for Confluence users

            Chris Colomb added a comment - Agreed - this would be a nice feature for Confluence users

            Marc Policani added a comment - - edited

            It would very much enhance the look and feel of some of my pages if I had a checkbox option within macro settings that I could set whether the macro should be open or closed by default.

            Marc Policani added a comment - - edited It would very much enhance the look and feel of some of my pages if I had a checkbox option within macro settings that I could set whether the macro should be open or closed by default.

            Even I am looking for this feature. When it will be available?

            Rama Swamy added a comment - Even I am looking for this feature. When it will be available?

            Please make this happen! This would be extremely beneficial for the reasons already mentioned, notably searchability of content.

            Michael Lacek added a comment - Please make this happen! This would be extremely beneficial for the reasons already mentioned, notably searchability of content.

            It's interesting how this seems like a feature that would have been implemented from the get go.

            Robert Wlaschin added a comment - It's interesting how this seems like a feature that would have been implemented from the get go.

            This is also needed so that links in a table of contents work. (They do not when the target is in an expandable section that is not expanded.)

            Frank_Spafford added a comment - This is also needed so that links in a table of contents work. (They do not when the target is in an expandable section that is not expanded.)

            This would be a really useful feature!

            Jessi Lawrence added a comment - This would be a really useful feature!

            Is the Expand Macro source code available anywhere on https://bitbucket.org/atlassian ? I would think someone in the community could add the code to do this pretty quickly and submit a Pull Request for it.

            David Hergert (PAYX) added a comment - Is the Expand Macro source code available anywhere on https://bitbucket.org/atlassian ? I would think someone in the community could add the code to do this pretty quickly and submit a Pull Request for it.

            xiangfei.li added a comment -

            +1 Voted !

            xiangfei.li added a comment - +1 Voted !

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

                Created:
                Updated: