2017 © Pedro Peláez
 

craft-plugin child-me

Easily create child elements

image

mmikkel/child-me

Easily create child elements

  • Tuesday, June 5, 2018
  • by mmikkel
  • Repository
  • 1 Watchers
  • 12 Stars
  • 904 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 82 % Grown

The README.md

Child Me! plugin for Craft CMS

Child Me! improves Craft's CX (child-creating experience) by making a nifty "New child" element index attribute available to element indexes., (*1)

Adding the "New child" attribute to a structure section or category index renders a button, which works as a "shortcut" for creating new child elements nested under a particular parent – much faster than manually selecting the parent in the "Parent" field on element edit pages!, (*2)

For structure sections with multiple entry types available, the Child Me! button opens a disclosure menu with shortcuts for creating child entries using these types., (*3)

Screenshot, (*4)

Requirements

This plugin requires Craft CMS 5.0+, (*5)

Using Child Me!

Child Me! works by adding the "New child" element index attribute to a structure section or category index., (*6)

To add the attribute, click the "Customize sources" disclosure menu toggle below your element sources in the left-side panel, then select the appropriate section and finally check the "New child" attribute., (*7)

Customize sources button, (*8)

Events

EVENT_DEFINE_ENTRY_TYPES, (*9)

Child Me! triggers an event when creating entry type menus, giving plugins and modules a chance to modify the available entry types via the "New child" button, for sections with multiple entry types. Example:, (*10)

\yii\base\Event::on(
    \mmikkel\childme\ChildMe::class,
    \mmikkel\childme\ChildMe::EVENT_DEFINE_ENTRY_TYPES,
    static function (\mmikkel\childme\events\DefineEntryTypesEvent $event) {
       // Only care about entries in the "Some Structure" section
       if ($event->section !== 'someStructure') {
           return;
       }
       // Make sure that the default entry type is not included
       $event->entryTypes = \array_filter($event->entryTypes, function (EntryType $entryType) {
           return $entryType->handle !== 'default';
       });
    }
);

Disclaimer

Please report any bugs or other issues here., (*11)

Plugin icon: Baby by Chintuza from the Noun Project, (*12)

The Versions

05/06 2018

dev-master

9999999-dev

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me

05/06 2018

1.0.4

1.0.4.0

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me

23/05 2018

1.0.3

1.0.3.0

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me

23/05 2018

1.0.2

1.0.2.0

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me

01/05 2018

1.0.1

1.0.1.0

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me

09/12 2017

1.0.0

1.0.0.0

Easily create child elements

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft child me