PHPackages                             jonom/silverstripe-someconfig - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. jonom/silverstripe-someconfig

ActiveSilverstripe-vendormodule[Admin Panels](/categories/admin)

jonom/silverstripe-someconfig
=============================

Combines the CRUD features of ModelAdmin with the singleton settings editing of SiteConfig so content and settings can be co-located.

2.0.0(3mo ago)66.9k↓44.1%6[1 PRs](https://github.com/jonom/silverstripe-someconfig/pulls)20BSD-3-ClausePHPCI passing

Since Nov 21Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/jonom/silverstripe-someconfig)[ Packagist](https://packagist.org/packages/jonom/silverstripe-someconfig)[ Fund](https://www.paypal.me/jmnz)[ GitHub Sponsors](https://github.com/jonom)[ RSS](/packages/jonom-silverstripe-someconfig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (10)Used By (20)

Silverstripe SomeConfig
=======================

[](#silverstripe-someconfig)

If 🗂️ `ModelAdmin` and ⚙️ `SiteConfig` had a baby, what would you get? This module! 🐣

What is this for
----------------

[](#what-is-this-for)

`SiteConfig` is great for storing site wide settings. `ModelAdmin` is great for viewing data. But you know what? Sometimes you want to co-locate related data and settings.

`SomeConfig` combines the CRUD features of `ModelAdmin` with the singleton settings editing of `SiteConfig`, so content and related settings can live together.

**Example:**

Say you have a contact form on every page of your site, and you have a `ModelAdmin` instance to let CMS users browse submissions. That contact form sends an email to someone, so you added an `EnquiryMailTo` field to `SiteConfig` for that. Now users have to go to two different places to manage content related to your enquiry form. Wouldn't it be nice if it was all under `/admin/enquiries/`?

[![](docs/images/modeladmin-topics.png)](docs/images/modeladmin-topics.png)

[![](docs/images/modeladmin-settings.png)](docs/images/modeladmin-settings.png)

Requirements
------------

[](#requirements)

SilverStripe ^6 (4+ with previous releases)

Installation
------------

[](#installation)

```
composer require jonom/silverstripe-someconfig
```

How to use
----------

[](#how-to-use)

1. Apply the `SomeConfig` trait to a `DataObject` class that contains your settings fields.
    - Like `SiteConfig`, only one of these objects will be allowed to exist per site.

    ```
    use JonoM\SomeConfig\SomeConfig;
    use SilverStripe\ORM\DataObject;
    use SilverStripe\View\TemplateGlobalProvider;

    class EnquiryConfig extends DataObject implements TemplateGlobalProvider
    {
        use SomeConfig;

        private static $db = [
            'MailTo' => 'Varchar(255)',
            'ThankYouMessage' => 'Text',
        ];
    }
    ```
2. Apply the `SomeConfigAdmin` trait to a `ModelAdmin` sub-class that includes your config class.
    - ***Limitation:** your config class can't be first.* At this time this module is pretty simple. It just changes the tab and back links so you don't see the gridfield for your settings object. That trick doesn't work though if your settings class is the first tab as the gridfield view will be loaded when you access the admin.

    ```
    use JonoM\SomeConfig\SomeConfigAdmin;
    use SilverStripe\Admin\ModelAdmin;

    class EnquiryAdmin extends ModelAdmin
    {
        use SomeConfigAdmin;

        private static $managed_models = [
            'EnquirySubmission',
            'EnquiryTopic',
            // Cannot be first
            'EnquiryConfig',
        ];

        private static $url_segment = 'enquiries';
        private static $menu_title = 'Enquiries';
        private static $menu_icon_class = 'font-icon-p-mail';
    }
    ```
3. If you want to access config settings in templates, make sure your config class implements `TemplateGlobalProvider`. Then use it like `SiteConfig`. ```
    Email us
    ```
4. You can access config objects in php code like: ```
    $email = EnquiryConfig::current_config()->MailTo
    ```

Maintainer contact
------------------

[](#maintainer-contact)

[Jono Menz](https://jonomenz.com)

Sponsorship
-----------

[](#sponsorship)

If you want to boost morale of the maintainer you're welcome to make a small monthly donation through [**GitHub**](https://github.com/sponsors/jonom), or a one time donation through [**PayPal**](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z5HEZREZSKA6A). ❤️ Thank you!

Please also feel free to [get in touch](https://jonomenz.com) if you want to hire the maintainer to develop a new feature, or discuss another opportunity.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance78

Regular maintenance activity

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~253 days

Recently: every ~265 days

Total

7

Last Release

116d ago

Major Versions

1.0.5 → 2.0.02026-01-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/54ba1a57c516be631e90bac916e1add4a84fe2b39284aa5a5cc5ea37c0d6cefa?d=identicon)[Jono M](/maintainers/Jono%20M)

---

Top Contributors

[![jonom](https://avatars.githubusercontent.com/u/1079425?v=4)](https://github.com/jonom "jonom (4 commits)")[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (1 commits)")[![elliot-sawyer](https://avatars.githubusercontent.com/u/354793?v=4)](https://github.com/elliot-sawyer "elliot-sawyer (1 commits)")[![mikenuguid](https://avatars.githubusercontent.com/u/44601742?v=4)](https://github.com/mikenuguid "mikenuguid (1 commits)")[![mooror](https://avatars.githubusercontent.com/u/6110819?v=4)](https://github.com/mooror "mooror (1 commits)")[![satrun77](https://avatars.githubusercontent.com/u/166450?v=4)](https://github.com/satrun77 "satrun77 (1 commits)")

---

Tags

configurationconfigsilverstripemodel adminsiteconfigmodeladminsite config

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jonom-silverstripe-someconfig/health.svg)

```
[![Health](https://phpackages.com/badges/jonom-silverstripe-someconfig/health.svg)](https://phpackages.com/packages/jonom-silverstripe-someconfig)
```

###  Alternatives

[redchamps/module-clean-admin-menu

It will merge all third party extensions menu items to single menu item named 'Extensions'.

164416.3k](/packages/redchamps-module-clean-admin-menu)[colymba/gridfield-bulk-editing-tools

Silverstripe CMS GridField component to upload images/files and edit records in bulk

94677.2k39](/packages/colymba-gridfield-bulk-editing-tools)[silverstripe/admin

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[stevie-mayhew/hasoneedit

Allows editing the fields of a has\_one object directly in the CMS

21225.4k11](/packages/stevie-mayhew-hasoneedit)[plastyk/dashboard

An extendable dashboard for Silverstripe

2243.0k2](/packages/plastyk-dashboard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
