Skip to main content
AEM_Forum
Level 10
May 11, 2017
Risolto

Folder Structure for an AEM Application

  • May 11, 2017
  • 3 risposte
  • 1801 visualizzazioni

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.

Questo argomento è stato chiuso alle risposte.
Migliore risposta di 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 risposte

cquser1
cquser1Risposta
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_ForumAutore
Level 10
May 11, 2017

Appreciate confirming my understanding.

Thanks,

Rama.