GithubHelp home page GithubHelp logo

eminos / statamic-group Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 126 KB

A Statamic plugin that adds a Group Fieldtype. You can group other fields without affecting their scope and you can control those groups' visibility with regular Statamic field conditions. You can also optionally show a header and a toggle.

License: MIT License

JavaScript 16.22% CSS 9.95% Vue 38.17% PHP 35.66%
statamic statamic-addon statamic-v3 statamic-v4

statamic-group's Introduction

Statamic Inline Group

As of Statamic v4.37.0 we now have a native Group Fieldtype. Since the two fieldtypes differ both visually and functionally let's keep this addon around but rename it to Inline Group to not conflict with the native Group Fieldtype.


A Statamic plugin that adds an Inline Group Fieldtype.
You can group other fields without affecting their scope and you can control those groups' visibility with regular Statamic field conditions. You can also optionally show a header and a toggle.

Screenshot of the Inline Group Fieldtype

Installation

Install this plugin using composer.

composer require eminos/statamic-group

Features

  • Inline Group fieldtype that starts a new group wherever you put it in the blueprint or fieldset.
  • By default the group is not doing anything, but you can control its visibility with other fields and conditions.
  • You can choose to show a header (same design as the build-in Section fieldtype).
  • You can choose to show a toggle.
  • You can choose if that toggle controls the visibility of the groups' fields.
  • You can choose if you want the toggle state to be saved or not.

Here's a screenshot of the config options.

Screenshot of the Inline Group field config

License

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

statamic-group's People

Contributors

caseydwyer avatar eminos avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

caseydwyer

statamic-group's Issues

Missing vite manifest?

Hi @eminos! ๐Ÿ‘‹ Thanks for your work on this package; was curious to try it out but ran into this error:

Vite manifest not found at A:\laragon\www\test-project\public\vendor\statamic-group\build\manifest.json...

Possible that the repo needs its JS compiled?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.