Skip to main content
Oct 16, 2015 2:29 AM UTC
Solved

Displaying a file tree in AEM

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.
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Member
Oct 16, 2015 2:29 AM UTC

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

smacdonald2008
Level 10
Oct 16, 2015 2:29 AM UTC

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. 

Translate
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Member
Oct 16, 2015 2:29 AM UTC

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/

Translate