How to implement BreadCrumbs

Hi community!

I'm trying to implemente the BreadCrumbs widget from OutSystems UI but I'm having issues understanding how this works. 

First I'm not sure If I've to drag the widget to the breadcrumbs placeholder on the layout before start making the navigation but my biggest doubt is that I've the a screen that's working for a lot os scenarios like, inside that screen you see some category's detail and you can add a new subcategory. After creating the sub it navigates to a ''details page'' (that is the same screen than before but with new values) so i would like my breadcrumbs to add a ''new step'' so the user can imediatly see that he is inside the previous category like this:

Dashboard > Category 1> Subcategory 1.1 




hi Carolina,

For this you can create a webblock and use this public.

Like


And design-


And use this on screen-


Hope this will Help.

Thanks 

Rahul

Actually, i didnt fully understood.

I've some questions

How do you get de page's url? 

Can you explain me the logic on the ''if's''? 


Carolina Santos wrote:

Actually, i didnt fully understood.

I've some questions

How do you get de page's url? 

Can you explain me the logic on the ''if's''? 


Hi Carolina,

The webbloack have input parameters and Mandantory no.

When you call this webblock provide level wise pages URL.

Back URL check if its not null then link to external url

like below image

Same again check in if condition for

SyntaxEditor Code Snippet

Level1_URL <> "" or Level1_Label <> ""


Thanks

Rahul

Can I use this method in a scenario where i can't predict how many ''sublevels'' a category will have? 

Carolina

You can create how many "sublevels" you need, but for that you must edit the  breadcrumbs webblock.


Regards 

Perhaps you can give a look to this component in forge


https://www.outsystems.com/forge/component-overview/2414/dynamicbreadcrumbs