# Seeking a better way to organize plugin site settings

**URL:** https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934
**Category:** Development
**Created:** [2016 年 2 月 21 日午後 6:13 UTC](https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934 "2016-02-21T18:13:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2016 年 2 月 21 日午後 6:13 UTC](https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934/1 "2016-02-21T18:13:09Z")

</div>

I am in the process of updating my [“plugin outlet locations” plugin](https://meta.discourse.org/t/plugin-outlet-locations/29589).

AFAIK there are currently 42 plugin outlets.  
I could have only one setting that enables / disables them as a whole, but I would prefer to offer more granular control of displaying the individual plugin outlet locations.

I can use the settings.yml file to add the settings to the  
Admin → Settings [Plugins] pane  
_BUT_ even if it is a “developer only” plugin it seems a bit rude to add 42 settings into the mix.

Alternatively, I can use the settings.yml file to add a “button” i.e.  
Admin → Settings [plugin name]  
that goes to a pane with the settings.  
_BUT_ although this seems less rude, it doesn’t feel right adding a plugin button to what otherwise consists of application buttons.

What I would like to do is add the settings to  
Admin → Plugins [plugin name]

After working through the [“Purple Tentacle” tutorial](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-5-admin-interfaces/31761), I am able to have the template work with the controller. And I can _display_ settings in it.

But I have been unable to find the way to include settings controls into it.

It may be that what I have tried was just going about it the wrong way, it’s equally as likely that I tried the right way but didn’t have the right syntax needed.

A point in the right direction will be most appreciated. TIA

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016 年 2 月 26 日午後 8:22 UTC](https://meta.discourse.org/t/seeking-a-better-way-to-organize-plugin-site-settings/39934/2 "2016-02-26T20:22:14Z")

</div>

What you want to do is a little complicated, but what it sounds like you want is to create your own template and controller + server side action to update site settings. This is similar to what we do for embedding controls. Those are stored in site settings, but the interface is custom.
