How to hardcode StartLevel value for Breadcrumb component? | Community
Skip to main content
NeelaP
New Participant
Apr 6, 2021 7:50 PM UTC
Solved

How to hardcode StartLevel value for Breadcrumb component?

I am currently working on HeroBanner component and I am using reference for OOB Breadcrumb component which i made it non-editable. I tried changing "StartLevel" value to "4" in the dialog and design_dialog properties but it is still not working as expected, does anyone know any trick or code to overwrite default StartLevel value? Below is my code.  

<div class="marcom__bread" data-sly-resource="${'breadcrumb' @ resourceType='/core/wcm/components/breadcrumb/v2/breadcrumb', wcmmode='disabled'}">

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Apr 6, 2021 10:18 PM UTC

Hi, Can you please check

https://www.aemcomponents.dev/content/core-components-examples/library/templating/breadcrumb/hidden/level-1/level-2/breadcrumb.html

I tried same in 6.5 and it is working for me. 

if you want to predefined the value then you can simply extend the breadcrumb dialogs are hide those fields and use value property with fixed value.

Arun Patidar

4 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Apr 6, 2021 10:18 PM UTC

Hi, Can you please check

https://www.aemcomponents.dev/content/core-components-examples/library/templating/breadcrumb/hidden/level-1/level-2/breadcrumb.html

I tried same in 6.5 and it is working for me. 

if you want to predefined the value then you can simply extend the breadcrumb dialogs are hide those fields and use value property with fixed value.

Translate
Arun Patidar
NeelaP
NeelaPAuthor
New Participant
Apr 7, 2021 1:50 AM UTC
Thank you Arun, would you mind providing more detail?
Translate