Folder Structure for an AEM Application | Community
Skip to main content
AEM_Forum
Level 10
May 11, 2017
Solved

Folder Structure for an AEM Application

  • May 11, 2017
  • 3 replies
  • 1772 views

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.

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 cquser1

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.

3 replies

cquser1
cquser1Accepted solution
Level 7
May 11, 2017

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.

Prince_Shivhare
Community Advisor
Community Advisor
May 11, 2017

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

AEM_Forum
AEM_ForumAuthor
Level 10
May 11, 2017

Appreciate confirming my understanding.

Thanks,

Rama.