2017 © Pedro Peláez
 

silverstripe-module hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

image

moo/hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  • Thursday, July 12, 2018
  • by satrun77
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

HasOne Selector

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version License, (*1)

HasOneSelector is a module that provides CMS field to manage data object defined in a has_one relation., (*2)

Requirements

  • SilverStripe CMS ^5.0

Installation via Composer

composer require moo/hasoneselector

Usage


use SilverStripe\ORM\DataObject; use SilverStripe\CMS\Model\SiteTree; use Moo\HasOneSelector\Form\Field; class Resource extends DataObject { //... } class Page extends SiteTree { //... private static $has_one = [ 'Resource' => Resource::class, ]; public function getCMSFields() { $fields = parent::getCMSFields(); $resource = Field::create('Resource', 'Resource', $this, Resource::class); $fields->addFieldToTab('Root.Main', $resource); return $fields; } //... }

License

This module is under the MIT license. View the LICENSE file for the full copyright and license information., (*3)

The Versions

12/07 2018

dev-master

9999999-dev https://github.com/satrun77/silverstripe-hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  Sources   Download

MIT

The Requires

 

The Development Requires

cms silverstripe forms gridfield has_one cwp formfield

12/07 2018

3.x-dev

3.9999999.9999999.9999999-dev https://github.com/satrun77/silverstripe-hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  Sources   Download

MIT

The Requires

 

cms silverstripe forms gridfield has_one cwp formfield

12/07 2018

1.0.1

1.0.1.0 https://github.com/satrun77/silverstripe-hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  Sources   Download

MIT

The Requires

 

cms silverstripe forms gridfield has_one cwp formfield

11/07 2018

2.0.0

2.0.0.0 https://github.com/satrun77/silverstripe-hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  Sources   Download

MIT

The Requires

 

The Development Requires

cms silverstripe forms gridfield has_one cwp formfield

10/07 2018

1.0.0

1.0.0.0 https://github.com/satrun77/silverstripe-hasoneselector

This module provides CMS field to manage data object defined in a has_one relation.

  Sources   Download

MIT

The Requires

 

cms silverstripe forms gridfield has_one cwp formfield