Hi
Context:
We're recently implemented building blocks functionality in our project. We have a custom layout container component which we use as base to drag/drop components. But this custom component was not supporting the drag/drop of building block in it.
Yes, we've made sure to set policy for the layout container to include building block, but still it didn't work out. So we used WKND package, and created an overlay of 'core/wcm/components/container/v1/container' and create a new XF template around it. And we were able to achieve it.
Problem:
We are trying to using this overlayed container component, in a custom wrapper component (using data-sly-resource). This is causing two issues:
Attaching code-snippet of data-sly-resource.
<div class="<my-class> aem-GridColumn">
<sly data-sly-resource="${'container' @ resourceType='<my-project>/components/content/containers/container'}">
</sly>
</div>
Any help is appreciated. Thanks, in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
hello @cmanoha1
I am able to add components to the container.
Here are the steps I tried. Please let me know, what am I missing:
1. add container to seperator component
2. I go to the Seperator and click on container to add components
Please note that with following all components are added under container node of separator.
<sly data-sly-resource="${'container' @ resourceType='wknd/components/container'}">
And the policy that it is picking is /conf/wknd/settings/wcm/templates/landing-page-template/policies/jcr:content/root/container
So, any components that are allowed via policy on this level, are also available for the component
hello @cmanoha1
I am able to add components to the container.
Here are the steps I tried. Please let me know, what am I missing:
1. add container to seperator component
2. I go to the Seperator and click on container to add components
Please note that with following all components are added under container node of separator.
<sly data-sly-resource="${'container' @ resourceType='wknd/components/container'}">
And the policy that it is picking is /conf/wknd/settings/wcm/templates/landing-page-template/policies/jcr:content/root/container
So, any components that are allowed via policy on this level, are also available for the component
Thanks for the suggestion. It did help me diagnose the issue. In my case it was due to an internal JS script.
Thanks!