Skip to content

jacksleight/statamic-clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statamic Clipboard

Important

This is a temporary partial port of statamic/cms#14160 and only provides field-level actions (Copy/Cut All Sets, Paste Sets). The individual per-set actions from the original PR are not included as they require changes to core. If/when the PR is merged this repository will be archived in favour of the core feature.

This Statamic addon adds copy, cut and paste actions to Replicator fields, letting you move sets between fields, entries, pages and tabs.

Installation

This addon is temporary and I don't plan to publish it to the Statamic Marketplace or Packagist. To install you'll need to add the GitHub repository to your project's composer.json:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/jacksleight/statamic-clipboard.git"
    }
]

Then require the addon:

composer require jacksleight/statamic-clipboard:dev-main

How It Works

The addon registers three field actions on every Replicator field, accessible from the field's menu:

  • Copy All Sets: Copies all sets in the field to the clipboard.
  • Cut All Sets: Copies all sets to the clipboard and clears the field.
  • Paste Sets: Appends compatible sets from the clipboard.

The clipboard uses localStorage so it persists across pages and tabs within the same browser. Items expire after 10 minutes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages