Is it possible to expand all items in a list
Asked by Robert Stevenson:

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  
[](https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-expand-all-items-in-a-list/qaq-p/408690?attachment-id=3125){#link_119230bebbfc13}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/69184/1/confluence2.png){#display_119230bebbfc13_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-expand-all-items-in-a-list/qaq-p/408690?attachment-id=3126){#link_119230bebbfc13_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/69184/2/confluence.png){#display_119230bebbfc13_2}


Answers:
author: Deividi Luvison
body: 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](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "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.


author: Davin Studer
body: 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&lt;script type="text/javascript"&gt;AJS.toInit(function(){    AJS.$('.plugin_attachments_container .icon-section-closed').click();});&lt;/script&gt;
```

comments: author: Deividi Luvison
body: Nice one :D!


author: Robert Stevenson
body: 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


author: Robert Stevenson
body: HiSo - 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 scriptError informationsun.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


author: Davin Studer
body: 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.


author: Robert Stevenson
body: 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](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

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

[![](https://jira.atlassian.com/images/icons/issuetypes/improvement.png)CONF-37597](https://jira.atlassian.com/browse/CONF-37597?src=confmacro) - Change the area and increase the text limit for the File List Macro NEW

Cheers

Robert

comments: author: Deividi Luvison
body: You are more than welcome :p.


author: Deividi Luvison
body: 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.


Tags: file-list