I have a cq:include and I want to reference the first child component of a parsys. Is it possible to query the first child in path attribute? For example, is something like this possible:
<cq:include path="/content/site/jcr:content/entries//*" resourceType="site/components/entryType"/>
...where path is the xpath query for the first child component of the entries section.
Solved! Go to Solution.
That's still not very clear on how to use selectors. From what I gathered from your site, I implemented the following. However, this does not seem to work. I am attempting to use the XPath first child selector, but I can seem to find any good documentation on what the selector should even be.
<sling:include path="/content/site/ads/jcr:content/adContent" addSelectors="//*" resourceType="site/components/ad" />