Displaying a file tree in AEM | Community
Skip to main content
October 16, 2015
Solved

Displaying a file tree in AEM

  • October 16, 2015
  • 2 replies
  • 1344 views

Is it possible to show a directory file tree through a custom site in AEM?

IE. showing the file tree of the DAM

I was wondering if you can do this like you can on a normal server by configuring the .htacess file but wouldn't

know where to start with AEM.

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

You can enable directory listing by turning on the Auto Index option of Apache Sling Default Get Servlet- 

  1. Check the "Auto Index" checkbox in http://localhost:4502/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet
  2. Click on "Save"

You will see the directory listing enabled when you browse any resource with a trailing slash. Example - /content/dam/

2 replies

Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
October 16, 2015

You can enable directory listing by turning on the Auto Index option of Apache Sling Default Get Servlet- 

  1. Check the "Auto Index" checkbox in http://localhost:4502/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet
  2. Click on "Save"

You will see the directory listing enabled when you browse any resource with a trailing slash. Example - /content/dam/

smacdonald2008
New Participant
October 16, 2015

If you want this DAM JCR file structure to be rendered in a page - write a custom component and use the JQuery plug-in mentioned in this AEM Community article: 

https://helpx.adobe.com/experience-manager/using/creating-touchui-tree.html

Hope this helps.