Expand/collapse macros in a corporate data-center environment

Andre Messa July 18, 2024

Hi All, 

I am working on setting up a WIKI confluence sigh within my company. The issue I am having is with the Expand/Collapse macro functionality. I would like the ability to have an (Expand/Collapse) button at the top of my pages so that users can click the Expand button then use the control + F shortcut to search the entire page content. Otherwise, if they are unable to expand all, then the search function does not work. 

I have attempted the java injection within this posting: 

 

Solved: How to create an "Expand All" button for Confluenc... (atlassian.com)

However, I am restricted by my corp admin in doing java injection into confluence. We are currently on version V7.19.22 and moving to V8.5.x. 

Is there any way to resolve this issue in the current version or will there be functionality available out of the box for this in the v8.5?

 

Thank you all in advance!

1 answer

0 votes
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2024

Hi @Andre Messa and welcome to the Community.

First... the tags of your question say Cloud. But you're referencing moving from version A to version B, which sounds like Server/Data Center.

This does determine your options.

 

Having said that..  you can just put an Expand macro box on top of the page - it's not a button but it does the job.

Andre Messa July 18, 2024

Hi @Kristian Klima

thank you for pointing that out. I will adjust my tags. 

 

I am not sure I follow your solution. If I put an expand macro around the entire page, which encompasses multiple addition expand macros then once I open that main (page) macro it would expand all macros within the page?

 

The issue I am having is because I have multiple Expand macros on a single page, so if a user knows the specific subcategory they need details from then they can select and expand that specific macro. However, if the user is unaware exactly which subcategory the information they are seeking resides, and they want to search for it, they would first need to expand all macros one by one, then use a search function to search the content. 

So, the ideal scenario would be a button that allows them to click once, expands all macros, clicks again and collapses all macros. 

 

Hopefully this use case makes sense. 

 

Thanks,

Andre

Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2024

Oh... so you have multiple expand macros on a single page... and the proposed solution (from the quoted topic) is a no-go in your environment.

 

Thinking as a content person... if your users need to Expand all, thus revealing the entire content of the page... why hide your content in a series of extra macros? 

Your users interact with the entire page anyway...

If they Ctrl-F, then why put an extra step (expand all) in front of their access to the content?

Andre Messa July 18, 2024

Correct. 

It is a large amount of content, so the page is just very cluttered and long without the macros. Most users will not need all of the content. What it basically is, is a library of metric definitions. 

Some users will know what subcategory their metric falls within, and they will be able to open that Marco up to see the content. Others will require to search all the subcategories to see where their metric resides. 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events