Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.23 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.23 KB

Statamic Set Header Toggle

A Statamic plugin to add a "Set Header Toggle" Fieldtype. Add toggles to Replicator and Bard set headers.

Screenshot of Set Header Toggle

Installation

Install this plugin using composer.

composer require eminos/statamic-set-header-toggle

Features

  • Add tiny toggles to Replicator or Bard set headers.
  • Set any color you want.
  • Choose between two sizes.
  • Add one or any number you want.
  • Shows the field display label on hover.

Usage

Just add the Set Header Toggle field inside any Replicator or Bard set. It will show up in the header of that set!

This can be useful to control some rarely used or advanced settings, or if you'd want to control the visibility of other fields.

Here is an example of a Set Header Toggle controlling the visibility of a Tab. Tabs can be added with the Statamic Tabs addon.

Screenshot of a Set Header Toggle controling the visibility of a Tab

Possible improvements

  • Optionally group multiple toggles in a dropdown.
  • Tiny labels.
  • Add to Grid fieldtype item header.

License

The MIT License (MIT). Please see License File for more information.