Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

how to create a folder in a site?

Avatar

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile

Avatar
Ignite 10
Level 4
TB3dock
Level 4

Likes

34 likes

Total Posts

203 posts

Correct Reply

4 solutions
Top badges earned
Ignite 10
Boost 25
Give Back 25
Validate 10
Validate 1
View profile
TB3dock
Level 4

17-05-2021

we want to group some pages into a folder, none of the pages for folder should appear in the navigation (they are pulled out using servlets).  How do we create a folder in our site, vi source code? NOT via the UI?   We need it in source code so that we can distribute the folder to all the environments, including local dev instances.

Even in the UI, we cant see an option to create folders?

By folder, I mean a parent node in the page hierarchy.  Websites have a hierarchy - e.g. at the top there might be pages such as contact and about us, but there might be an articles node/directory which has lots of child pages in side this.  We have seen sites with this structure in AEM, just don't know how to make it.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

17-05-2021

It seems like your requirement is not suitable in this scenario:

which ever the project, I worked for, I have not seen any folder specifically in content page path. I have seen the hierarchy even many level of hierarchy but those were of cq:Page type only.

Even we have servlets registered with ResourceType those are also of cq:Page type or nt:unstructured type node but that too under the cq:page only.

So I would suggest take help from empty page template, if needed to create the hierarchy or to separate the page content type within it.

But Still you need to create folder then you can take help from crx/de to create sling:folder in any path or if you want it to be created by code then also you can take help from jcr api to add one node on the specific path with desired type.

 

Hope this will help.

Umesh Thakur

Answers (0)