Page header redaction for not showing breadcrumbs

☆ Hi everyone

I have plugin breacrumbs enabled and working great.

For some pages, I would like to disabled it by a statement it in page header.

I have looked at documentation on github repository and tried:

breadcrumbs:
    enabled: false

in page header but it did not work.

Any idea?

Thanks in advance ♪

Currently breadcrumbs has no specific page-level logic. You could do it manually via your template file… say you have:

{% if config.plugins.breadcrumbs.enabled %}
    {% include 'partials/breadcrumbs.html.twig' %}
{% endif %}

You could change this to be:

{% if not page.header.breadcrumbs.enabled is same as(false) and  config.plugins.breadcrumbs.enabled %}
    {% include 'partials/breadcrumbs.html.twig' %}
{% endif %}

Yes its a bit funky looking, but checking for an optional false value is not as simple as you would think!

I am going to try that with lots of pleasure (I will report also as soon as possible)

Thank you very much for your kind help (always)…

(I like the idea of proposal too) (thanks also for that)

☆ working beautifully ♪ goal reached!

Thanks again