Is it possible to expand all items in a list

Robert Stevenson May 18, 2015

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

1 vote
Answer accepted
Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2015

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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>
Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2015

Nice one :D!

Robert Stevenson May 21, 2015

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

Robert Stevenson May 21, 2015

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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.

1 vote
Robert Stevenson May 19, 2015

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

Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2015

You are more than welcome :p.

0 votes
Deividi Luvison
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2015

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
TAGS
AUG Leaders

Atlassian Community Events