Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

_cq_template and data-sly-resource

miar10726509
Level 1
Level 1

I created a CTA component that has a _cq_template node to have some properties by default configured when the component is added to a page.

The same component is also used within other components, by means of a proxy with following syntax in the html:
<div data-sly-resource="${'cta' @ resourceType='xxx/components/content/cta'}"></div>

Problem: When the component is proxied in above way, the _cq_template is not taken into account.

Does anybody know if there is a way to have the proxied component also have the pre-configured properties applied ?

Thanks!

0 Replies