how to restrict authoring for a specific component added using data-sly-resource
i have added a component inside an other component using data-sly-resource:
i have added a component inside an other component using data-sly-resource:
Thank you for your reply @arunpatidar
actually <sly data-sly-resource .... /> tag was placed inside a data-sly-test tag. if the condition is not satisfied i was calling <sly data-sly-resource .... /> with a selector inside another <sly data-sly-test> tag.
i just wanted the second component not to be authored by the user.
Got the fix : addedwcmmode='disabled' just inside data-sly-resource
<sly data-sly-resource="${breadcrumbPath @ resourceType='my-project/components/content/header/topicmenu', selectors='nav',wcmmode='disabled'}"></sly>
Thanks @arunpatidar
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.