It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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?

@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

Oh that's cool, thanks for sharing.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,435 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you