How to hardcode StartLevel value for Breadcrumb component? | Community
Skip to main content
NeelaP
April 6, 2021
Solved

How to hardcode StartLevel value for Breadcrumb component?

  • April 6, 2021
  • 1 reply
  • 1121 views

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.
Best answer by arunpatidar

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.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 6, 2021

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
NeelaP
NeelaPAuthor
April 7, 2021
Thank you Arun, would you mind providing more detail?