How to wrap 2 components in a div from the template content.xml file?
I have two components that should be configured in a cq template, in the content.xml file (in the jcr:content node). I don't have a page component for my template, so I cannot do something like this:
Is there a way to define a div container from within content.xml?
Best How To:
There can be one trick, you can add below to the content.xml file of your template.
This will create the content nodes for the page using this template, but to make this work you must have parsys included in your rendering page component path/of/page/page-component e.g.
Also there are some other ways like to add node of cq:template under your page component to pre-populate the components.