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.
Solved! Go to Solution.
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.
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.
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
Appreciate confirming my understanding.
Thanks,
Rama.
Views
Replies
Total Likes
Views
Likes
Replies