Instead of using sling:resourceSuperType 'core/wcm/components/page/v2/page' ,I want to use a custom page component.So what are the OTB clientlibs required to include in my custom page component to achieve a layout like this (Check the screenshot)
Solved! Go to Solution.
Guess you have marked answer correct by mistake.
Could you please explain if there is any specific reason for not making use of it (core v2 or from wcm).
On a high level, could guess should be quite a lot of files associated to it without making use of any of the two. However while check in parallel from my end while you reply.
You can have custom files while still making use of core page component.
In older version of AEM, it was a practice to inherit from foundation components. Now with latest version it is recommended to inherit from Core components though we have customization to it.
I suggest you to go through the structure of core v2 page component files (how is it organized) and overwrite the one necessary to have your custom files included in the respective files.
Per the lines from below link(Section Usage), this core component forms the basis of Editable templates.
Also, we have dialog, design dialog part of core component which we need not have to do it from scratch. Even if this calls for a customization, you can make use of Sling Resource Merger - mount point concept.
More than Editable templates, thinking on a long run in terms of upgrade/exposing page model as JSON/ Content services, it is better to inherit than to deal with lot of customization any further.