Automatically Create Node w/ Properties for Embedded Component
We're creating a "form-like" interface in the authoring environment and will be developing several components that are embedded with cq:include into the template. Is there any way to auto-generate those nodes when a new page is created and supply those nodes with default properties? We could do it programmatically in each component but wanted to see if CQ had any built in functionality i was missing. Ex -
With this in our template -
<cq:include path="pageContent/discountOverview" resourceType="/apps/site/components/discountOverview"/>
We'd want to see this node when page is created -
/content/site/../pagetitle/jcr:content/pageContent/discountOverview
Thanks