Breadcrumbs

'Breadcrumbs' allows breadcrumb trails to be created and managed easily. All it takes is a single option on a page to select a page parent and the component will create full breadcrumb trails on a layout. 'Breadcrumbs' supports disabling and hiding sp

Back to Breadcrumbs Support

scott56276
scott56276

I have a situation where I'd like to modify the breadcrumbs based upon the slugs in the URL. These are for art gallery pages.

Say you have a page at /art/:category/:gallery_name. Optionally, you might have /art/:category/:subcategory/:gallery_name as well. This page is a child of /art in the breadcrumb options.

Is there a way to modify the breadcrumb array via Twig? Based upon my initial research, it seems to be quite a PITA to modify an array element via Twig without using the god awful "merge" syntax.

It might be possible to extend the Breadcrumb plugin with yet-another-plugin, but that seems like overkill to me.

1-1 of 1