Is it possible to expand all items in a list

Hi, If I create a new page using the template "File List" then I can import a whole lot of files for others to browse or search using labels etc.

confluence2.png

 

I can also include a small text summary of the file using the "Properties" button.

When browsing it is often the thumbnail view or the text summary that is useful, rather than the file name.

But the thumbnail and text summary is hidden behind an expand arrow like this ">". So if I am scrolling through a list of 100 images I can't just choose by image.

Questions:

  1. Is it possible to "expand all" either by default or at the click of a button (e.g. perhaps another macro on the page that opened all the list items)?
  2. The text summary (actually called "comment") in the file properties is limited to a very small amount of text (about 1.5 lines). Is there a way to increase this limit?
  3. Would it be possible to consider putting the summary text (the comment) on the expanded view rather than having to click "properties" to read the summary - e.g. like this?

confluence.png

Thanks

4 answers

1 accepted

Hey Robert, replying your questions:

"Is it possible to "expand all" either by default or at the click of a button (e.g. perhaps another macro on the page that opened all the list items)?"

Nope sad.

"The text summary (actually called "comment") in the file properties is limited to a very small amount of text (about 1.5 lines). Is there a way to increase this limit?"

Not trough the UI. For this one you would need to customize the plugin code.

"Would it be possible to consider putting the summary text (the comment) on the expanded view rather than having to click "properties" to read the summary - e.g. like this?"

Nope but that is a neat idea, I will raise a feature request for that one and update it in here soon smile.

Thanks and Regards,
David| The Engineer that like Windows for realsies.
2 votes
Davin Studer Community Champion May 21, 2015

You could expand them all with a user macro fairly simply. Just put this on the same page as an attachments macro and it will expand all of the items. FYI, you may want to uncheck the "Show previews" option on the attachments macro ... especially if the page has lots of attachments. Leaving it checked could affect system performance as it would try to generate the thumbnail for all of the attachments at the same time.

 

Macro Body Processing:
No macro body

Template:

## Developed by: Davin Studer
## Date created: 05/21/2015
## @noparams
<script type="text/javascript">
AJS.toInit(function(){
    AJS.$('.plugin_attachments_container .icon-section-closed').click();
});
</script>

Very much appreciated - if my administrator will allow it, it will be put to use today! Fingers crossed. Thanks so much for your help. Robert

Hi So - I'm pretty sure I might be doing the wrong thing, but if I paste your script into a JScript macro window on my page I get a syntax error like this: javascript: Error parsing script Error information sun.org.mozilla.javascript.internal.EvaluatorException: syntax error (#2) That error is on line 2, so here's what I pasted to show you line 2: <script type="text/javascript"> AJS.toInit(function(){AJS.$('.plugin_attachments_container .icon-section-closed').click();}); </script> (I took out the comments because they threw an error also). Possibly I have to save the script as a file rather than paste it into the Javascript macro body? Anyway - if you can see what I've done wrong let me know. Cheers, Robert

Davin Studer Community Champion May 22, 2015

Not totally sure what you mean by a JScript macro. Do you have a user macro that allows for javascript to be put into the macro body or something like that? If so then maybe you don't want the opening and closing script tags as they might already be in the macro template.

Thanks Deividi - That's helpful - pity about the expand all bit (it's like google images - i.e. you really want to see the image. In fact it would be even better because you can see the first page of the document if it's a PDF - Google doesn't give you that!)

But thanks for the the improvement request ticket - much appreciated. Plus your picture is much funnier than my picture above, which isn't funny at all really sad

I'd encourage others to visit the page, see the funny pic and vote up the request!

CONF-37597 - Change the area and increase the text limit for the File List Macro  NEW

Cheers

Robert

You are more than welcome :p.

Improvement request created:

https://jira.atlassian.com/browse/CONF-37597

Please Robert vote for the above and add your thoughts in there so we can increase the ticket relevance.

Thanks and Regards,
David| The Engineer that like Windows for realsies.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

262 views 11 10
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you