grav-plugin-breadcrumbs icon indicating copy to clipboard operation
grav-plugin-breadcrumbs copied to clipboard

Add option to ignore current page

Open Regaez opened this issue 7 years ago • 2 comments

I think it would be nice if there could be an option to include/exclude the current page on the breadcrumb trail, similar to how you can optionally include home.

(I'll open a PR for this soon)

Regaez avatar Oct 24 '17 09:10 Regaez

@Regaez But what if I want to include current in some pages, but in other not. How to manipulate with this option from twig?

Sogl avatar Nov 13 '17 01:11 Sogl

It's currently a global plugin option, so you are unable to do this on a page-by-page basis.

You could, however, set ignore_current to false, and then override the twig template in your theme so that it filters out the last breadcrumb item depending on some page header value.

Regaez avatar Nov 13 '17 08:11 Regaez