# Dynamic plugin configuration

**URL:** <https://forum.shopware.com/t/dynamic-plugin-configuration/67254>\
**Category:** Programming (EN)\
**Created:** [27. Mai 2020 um 14:34 UTC](https://forum.shopware.com/t/dynamic-plugin-configuration/67254 "2020-05-27T14:34:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RomanS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/romans/32/19336_2.png) [@RomanS](https://forum.shopware.com/u/RomanS)\
**Post date:** [27. Mai 2020 um 14:34 UTC](https://forum.shopware.com/t/dynamic-plugin-configuration/67254/1 "2020-05-27T14:34:11Z")

</div>

Hi,

&nbsp;

I want to create a plugin configuration fields dynamically, based on some information from the database (instead of specifying those values in the _config.xml_ file).  
In a nutshell, it should be a list of simple dropdown fields:

```
Field 1 (Options: Yes/No)

Field 2 (Options: Yes/No)

...

Field N (Options: Yes/No)

```

&nbsp;

I checked **\Shopware\Core\System\SystemConfig\Service\ConfigurationService::getConfiguration()** and **\Shopware\Core\System\SystemConfig\Util\ConfigReader::getConfigFromBundle()** and I don’t see any events available to subscribe for modifying the behavior of the configuration page.

&nbsp;

Perhaps, the best way is to create a custom component.

Is there a simple way to create a collection of **sw-simple-select** components?

&nbsp;

I don’t have much experience with the Shopware, so any help would be highly appreciated.  
Thanks!

---

<div class="post-metadata">

**Author:** ![admag](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@admag](https://forum.shopware.com/u/admag)\
**Post date:** [26. August 2022 um 19:00 UTC](https://forum.shopware.com/t/dynamic-plugin-configuration/67254/2 "2022-08-26T19:00:08Z")

</div>

I was also trying to do same.

Have you find out any solution?

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [27. August 2022 um 06:11 UTC](https://forum.shopware.com/t/dynamic-plugin-configuration/67254/3 "2022-08-27T06:11:23Z")

</div>

Why don’t you create an entity/table and use in the config the entity single selection component? I think this is the easiest way.
