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?
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:
https://forum.shopware.com/discussion/comment/258566/#Comment_258566
Funktioniert nicht mehr auf Shopware 6.4.1.0. Hatte ein Plugin das einwandfrei funktionierte und gerade auf der 6.4.1.0 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?
config('FeedbackPlugin.config.isAdding')
Outputs nothing.