Expand my Community achievements bar.

SOLVED

Displaying a file tree in AEM

Avatar

Former Community Member

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!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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/

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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/

Avatar

Level 10

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.