Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Latest commit

 

History

History
85 lines (57 loc) · 2.41 KB

README.md

File metadata and controls

85 lines (57 loc) · 2.41 KB

SilverStripe Details Admin

A SilverStripe 4 module that manages a DataObject single record, much in the way of the core 'Settings' section.

Warning: The module is built using React, and this means it is work in progress. At this point not all SilverStripe components support React, including the GridField. So getCMSFields will generate an empty tab for has_many relations...

Contents

Requirements

  • SilverStripe 4.0

Installation

Using git, clone the repo to a location of your choice:

git clone https://github.com/Martimiz/silverstripe-detailsadmin ./my-repo-name

Usage

In your module create a default DataObject customSettings, than create an DetailsAdmin extension like this:

<?php

use Martimiz\DetailsAdmin\DetailsAdmin;

class CustomSettingsAdmin extends DetailsAdmin
{
    private static $url_segment = 'customsettings';
    private static $menu_title = 'Custom Settings';
    private static $menu_icon_class = 'font-icon-cog';
    private static $menu_priority = 9;
    private static $tree_class = CustomSettings::class;
}

Developers

Using Node.js and Yarn, perform a yarn install from the root of the module.

Read About this Module for more info on how this module works.

Issues

All issues can be reported here

https://github.com/Martimiz/silverstripe-detailsadmin/issues

Contribution

Contribution is very welcome in the form of opinions, information, issuereports and pullrequests

Maintainers

Martine Bloem aka Martimiz - martine at balbus dot nl

License

BSD-3-Clause © Balbus Design

silverstripe webpack issues

Other

SilverStripe Module Starter Kit was used for the basic setup of this module.