How to get plugin configuration values in templates in shopware 6?

I have extended a file @Storefront/storefront/page/account/index.html.twig

I want to hide and show a block in the file based on my plugin configuration.

How to get the plugin configuration values in the template file?

Have a look here:

1 Like

Funktioniert nicht mehr auf Shopware Hatte ein Plugin das einwandfrei funktionierte und gerade auf der nicht mehr…

That is now possible via{{ config('DemoApp.config.field1') }}, see: Configuration - Shopware Developer


How is it possible nowdays?

I got a feedback-plugin.js

inside I have:

 static options = {
        isAdding: true

How I access this Value in Twig?


Outputs nothing.