i have added a component inside an other component using data-sly-resource:
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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
Hi @ashwinka
You can't have option to hide/show the breadcrumb component in your component.
<sly data-sly-test.isTopicmenu="${properties.isTopicmenuEnabled}" data-sly-resource="${breadcrumbPath @ resourceType='my-project/components/content/header/topicmenu', selectors='nav'}"></sly>
Could you please also explain what exactly is the issue? You don't want 2 component, or do you want to add a parsys in your component so author can drag and drop breadcrumb? I am not able to understand the issue/blocker/technical challenges here.
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
Views
Like
Replies