- All your template resources should be in /apps/<project>/components/structure and templates will go at /apps/<project>/templates.
- There should be a base resource /apps/<project>/components/structure/base which should have the templating script structure. This you can get from the archetype.
- Note: the base should contain only structure, basic includes. It should not have any specific functional content.
- There should be a homepage templating resource which is inherited from the base. It should overlay all the files which need explicit behavior like header,headlibs, footer, footlibs
- Other template resources can either be inherited from the base or homepage based on the requirement.
- None of the templates will directly point to the bass resource.
- Templates should have the cq:designPath=/etc/designs/<project>
- Templates should have allowedPaths to restrict their access.
AEM4BEGINNER blog is for Beginners who are interested in learning Adobe Experience Manager (AEM) aka Adobe CQ5 from basics. The Information provided in this blog is for learning and testing purposes only. Here, I have posted the information which I know or gathered from different sources.
May 10, 2020
Estimated Post Reading Time ~
Structure the Templates
By
aem4beginner
No comments:
Post a Comment
If you have any doubts or questions, please let us know.