2017 © Pedro PelĂĄez
 

craft-plugin spoon

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

image

angellco/spoon

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  • Wednesday, July 18, 2018
  • by joshangell
  • Repository
  • 5 Watchers
  • 29 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Plugin icon, (*1)

Spoon plugin for Craft CMS

Enhance your Matrix fields with groups, tabs and more!, (*2)


Use Spoon to group Matrix blocks, hide blocks and / or fields, and organise your block layouts with tabs., (*3)

Spoon never touches your content, it is simply a layer on top of the core Matrix field type, so if you ever don’t want it you can just take the blue pill and uninstall it., (*4)

Or is it the red pill. Which is the real illusion?!, (*5)

Now works with Super Table!, (*6)

Get inception heavy with either a Matrix inside a Super Table or go wild and nest that Super Table in another Matrix for more fun., (*7)


Requirements

This plugin requires Craft CMS 3.0.15 or later., (*8)

Installation

To install the plugin, follow these instructions., (*9)

  1. Open your terminal and go to your Craft project:, (*10)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*11)

    composer require doublesecretagency/craft-spoon
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Spoon., (*12)

Overview

Organise long lists of blocks into smaller groups for clearer selection., (*13)

block type groups example, (*14)

Arrange fields into tabbed groups on each block type., (*15)

block type field layouts example, (*16)

Use just one Matrix field and hide and show blocks or fields based on the Entry Type, Category Group and more., (*17)

group block types button, (*18)

Usage

The way Spoon works is by allowing you to create your block type groups and field layouts in multiple contexts., (*19)

Say you have a large Matrix field that drives a lot of the content on your site, you want it to work the same way across most of the control panel but there are often a couple of places you just want to tweak it. You might want an extra block type for a specific section, or to not show certain fields somewhere as they aren’t applicable in that context., (*20)

We enable this to happen by making use of contexts. Each time the code runs that manipulates the output of your Matrix fields we check the context of the page to see if there is any specific configuration for that context and if not fall back to any defaults you may have set., (*21)

The following contexts are currently supported:, (*22)

  • Entry Types
  • Category Groups
  • Global Sets
  • Users

You can override your defaults for a specific context by going to the field layout designer for each one, clicking the gear icon of any active Matrix field and selecting “Group block types”:, (*23)

group block types button, (*24)

Setting up defaults

To create default block type groups and field layouts for all your Matrix fields go to Spoon in the main navigation. Here you will find a list of your current Matrix fields., (*25)

Click a field name to launch the block type groups editor. It should look something like this:, (*26)

block type groups editor, (*27)

Now you can group your block types in the same way that you create a field layout for a section:, (*28)

block type groups editor filled in, (*29)

If you leave any block types off then they won’t be shown., (*30)

Once you have some groups you can go one step further and customize the field layout for a particular block - just click the gear icon and select ‘Edit field layout’., (*31)

block type field layout, (*32)

Thats it! You should now be able to browse to somewhere that uses that field and see your new groups and field layouts in action., (*33)

Config settings

Spoon supports the standard config.php multi-environment friendly config file for the plugin settings. Just copy the config.php to your Craft config/ directory as spoon.php and you can configure the settings in a multi-environment friendly way., (*34)

  • nestedSettings - set this to an array of Matrix field handles that should use the nested settings menu display mode:

nested settings menu, (*35)


Further Support

If you have any remaining questions, feel free to reach out to us (via Discord is preferred)., (*36)

On behalf of Double Secret Agency, thanks for checking out our plugin! đŸș, (*37)

Logo for Double Secret Agency , (*38)

The Versions

18/07 2018

dev-develop

dev-develop

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

18/07 2018

dev-master

9999999-dev

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

18/07 2018

3.0.1

3.0.1.0

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

10/07 2018

3.0.0

3.0.0.0

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

03/07 2018

3.0.0-beta.4

3.0.0.0-beta4

A plugin for Craft to enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

03/07 2018

3.0.0-beta.3

3.0.0.0-beta3

A plugin for Craft to help enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms matrix craftcms craft-plugin craft spoon

02/07 2018

3.0.0-beta.2

3.0.0.0-beta2

A plugin for Craft to help enhance your Matrix fields with groups, tabs and more!

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft spoon

02/07 2018

3.0.0-beta.1

3.0.0.0-beta1

Enhance Matrix

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft spoon