I need to implement breadcrumbs in a paint layout, not a design. I have found %asset_lineage_linked%. However, I need to mark up the breadcrumbs as a list. I have tried to achieve this with a modifier:
Still nothing - the keyword just disappears (this would presumably be no use in this case anyway, since I need the links to work, rather than escaped and output to screen). I tested:
I can confirm that these don't work on a 4.18.2 system, other simpler modifiers such as uppercase and escapehtml don't even work. I have submitted this as a bug.
In the meantime however, I think you have to either do what Nick suggested, or result to using JS. :(
Thanks, both. I was trying to use a paint layout because of the structure of the HTML. I'll have to look back at it and see if I can shoehorn it into the design.
Thanks, both. I was trying to use a paint layout because of the structure of the HTML. I'll have to look back at it and see if I can shoehorn it into the design.
Well, it would be pretty ugly, and I hate doing it. But you could add a CSS rule in your Paint Layout that shows the hidden breadcrumb.
Alternately, use javascript to check if a div ID or Class now exists (when printing your paint layout) and if it does, show the breadcrumb.
I *really* don't want to get into front-end stuff for nav.
Anyway, I've managed to shift the breadcrumbs into the design, so I am now sorted. I'm trying to work with a menu_normal design area now for my main site menu, and having problems, but that's for another thread.