Expand my Community achievements bar.

SOLVED

Folder Structure for an AEM Application

Avatar

Level 10

Hi all,

Folder Structure for an AEM Application exists something like below:

apps -> <app name>

                                templates

                                components

                                                    content

                                                    structure

Is this structure enforced or it is our choice?

What if I create a component under templates folder, but adjust sling:resourceType correctly? Will it work?

Thanks,

Rama.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi,

The basic motive of having a proper structure is that it is easy for anyone working on project to know where the things are. If you want to place components under templates folder and others, you are making things clumsy for you as well as others.

IMO, for the thing you mentioned it should work without issues.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 8

Hi,

The basic motive of having a proper structure is that it is easy for anyone working on project to know where the things are. If you want to place components under templates folder and others, you are making things clumsy for you as well as others.

IMO, for the thing you mentioned it should work without issues.

Avatar

Community Advisor

Hi Rama,

This folder structure is just for User understandings.

I tried same and I was able to use component from template folder.

According to me, this is best practice to use it.

Structure - you will have page component, header , footer etc.

Content - you will have different component to render content.

 

~ Prince

Avatar

Level 10

Appreciate confirming my understanding.

Thanks,

Rama.