I've been using the expand macro a lot to organise my data (like a faq) but and am now having trouble searching for things (using the quick search). I can use the quick search to locate the page I'm after. But then I need to manually toggle open each and every expand field, before I can use the normal cntrl-f to find what I'm looking for.
Does anyone know of a way I can install an addon with this Expand All feature, or possibly a way to code my own macro?
A massive thanks in advance for helping!
hello , i don't know if you find the solution but after looking in to a lot of pages i tried this and it work :
1- first create user macro:
general configuration -> user macro
>create a user Macro
name your macro expandall then past this and save it :
but if you want to add this to all pages in the confluence :
go to look and feel -> layout -> page layout -> add it where you want :
#set($helper = $action.helper)
Step 1: Insert a html macro.
Step 2 : Paste the following.
<a id="toggleAll" href="#">Expand/Collapse All sections</a>
Step 3: Throw the feet up
Brilliant, Ben! I just tweaked the first line of your HTML to use a <button> element instead of an <a href> element:
<p align="center"><button name="toggleAll" id="toggleAll" type:"button">Expand/Collapse All Sections</button></p>
This makes a nifty centered button, and also doesn't alter the URL in the browser address bar. Everything otherwise works the same as the code you so kindly posted.
Ack. Welcome to the neighborhood... I just realized there's a minor typo ("type:" instead of "type=") in the sample I posted yesterday. The sample still works, despite the typo, but it's annoying to an OCD type like myself. Here's an updated sample that uses the "=" sign consistently:
<p align="center"><button name="toggleAll" id="toggleAll" type="button">Expand/Collapse All Sections</button></p>
Thanks for listening.
Every team in the world is unique, and so Atlassian believes that each and every team's best way of working needs to be molded to their unique circumstances – ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot