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.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...
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