Search code examples
neoscms

How to disable a Neos backend menu entry with a condition


I would like to disable a neos backend menu entry via config. More precisely, I installed flownative/neos-pixxio and only want to show the backend menu entry if configured (the same neos package that depends on pixxio is used on multiple websites, but not all should be able to see it).

I tried disabling the menu via the yaml setting:

    Neos:
      Neos:
        modules:
          management:
            submodules:
              flownativePixxio: ~

but that does not remove it, instead it just removes the label of the menu entry, leaving the menu entry blank, but clickable:

Neos Backend Menu


Solution

  • try

    Neos:
      Neos:
        modules:
          management:
            submodules:
              flownativePixxio:
                enabled: false