Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Display a nested directory/file tree on a Confluence page, similar to Windows Explorer

Daniel Miller May 2, 2017

Given a nested hierarchy of directories and files (the data only, with no access to the actual system), I'd like to generate a display similar to Windows Explorer, with each directory level expandable and collapsible. Such displays could include up to 25K files. I'm aware I might be able to do this with nested Expand macros but this seems ugly and wastes a lot of vertical space. Is there a better way? Thanks!

1 answer

0 votes
Vincent Mann
Contributor
February 11, 2020

The Table of Contents macro can do this without the expanding part. The sidebar is where you can expand and collapse your directory. I get by with those. Did you find another solution @Daniel_Miller?

Daniel Miller
Contributor
February 11, 2020

@Vincent Mann this was to create a single page displaying a directory hierarchy of some other system. I ended up writing some code that would generate output that looked like the Linux "tree" command, and also had UP/PREV/NEXT links (and the appropriate anchors) following each directory entry for easier navigation. No expand/collapse, unfortunately.

Like Vincent Mann likes this
Vincent Mann
Contributor
February 11, 2020

Oh that's cool, thanks for sharing.

Paulie Pena IV
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 24, 2024 edited

@Daniel Miller, can you give an example of what sort of output was generated by your script (and was that output something that could be copied as text and pasted into Confluence), or even better, could you share the code you wrote?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community events, ace, engineering, confluence feed, power of feed, atlassian ask me anything, atlassian confluence answers, ace rsvp, atlassian community events rsvp, atlassian magic

“How We Built This” ft. Atlassian Confluence Engineers

Meet the engineers who are making the Confluence magic happen at Atlassian ✨

RSVP now!
AUG Leaders

Upcoming Confluence Events