Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Toggle Show / hide sections like Atlassian documentation

Deena January 8, 2020

I really like the section toggle feature used by Atlassian's own pages like below

https://www.atlassian.com/licensing/atlassian-access#annual-subscriptions

Is it possible create such a page using Confluence without paid plugins?

4 answers

1 accepted

3 votes
Answer accepted
Adam Rypel _MoroSystems_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2020

Hello @Deena ,

I am not sure, if you can use this exact same feature, but you can use "Expand" feature in Confluence Cloud - it has the same function.

Just type "/expand" in your page editor and choose "Insert an expand". Then you can change title for the expander, but also add text, images or tables into it.

Hope that helps!

Adam

Deena January 8, 2020

Thank you Adam. I forgot to mention I had checked  that macro and it looked pretty basic. But wondered if it is possible to replicate a similar rich look n feel as atlassian doco.

Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2020

@Deena I don't think we have a way to do exact the same because Confluence Cloud does not allow custom CSS.

Deena January 8, 2020

Thanks for confirming.

0 votes
Dirk_Tornow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2024

You can use a bookmarklet to toggle all expandable sections on a confluence page by using:

javascript:(function(){var expandElements=document.querySelectorAll('.expand-control');if(expandElements.length===0){alert('No expand sections found on this page.');}else{expandElements.forEach(function(el){if(!el.classList.contains('expanded')){el.click();}});}})();


as the link target. It's not what I would want, but at least it works universally on all confluence pages with all "Expand" macro sections. Haven't tested with nested ones tho…

0 votes
Heba June 15, 2021

I have the exact same question, the current macro is not that nice

0 votes
Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2020

What Confluence version are you using @Deena ?

Deena January 8, 2020

Using the cloud

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events