mlathrom / craft-remix
A Craft CMS plugin. The Remix field outputs the transformed value of your title or slug based on rules you define.
Requires
- php: >=8.2
- craftcms/cms: ^5.0.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
README
English, Deutsch, Schwiizerdüütsch Français, Français canadien, Norsk, Norsk bokmål, Nederlands, 한국어, Español, Русский
Overview
The Remix field outputs the transformed value of your title or slug based on rules you define, including:
- Find and replace (with regex support)
- Uppercase, lowercase, and title case transformations
- Append text
- Prepend text
Features
- Live Preview - test your rules in real-time with a rule-by-rule breakdown
- Inline Regex Validation - see errors as you type your patterns
- Regular Expressions - for find and replace
- Ignore Case - for find and replace
- Template Rules - quick-add common patterns like stripping articles, punctuation, or collapsing whitespace
- All Element Types - works with entries, categories, and any element with a title or slug
- Filter & Sort Elements - in the Control Panel
Use Cases
Sorting, Filtering, Translation, Redaction, Formatting, SEO
How to Use
- Create a Remix field
- Select a target (Title or Slug)
- Define your rules (or use template buttons for common patterns)
- Add the field to your element's field layout
- Remix autofills when you save the element
Remix in Action
Origin Story
This field was built to address a specific need: strip "The" and "A" from titles to create a sorting field. In fact, the original name of this plugin was Sort Title. But after some tinkering, it became clear that this field had more potential.
Thus, the Remix field was born.
Upgrading to v2.0.0
Version 2.0.0 includes breaking changes with automatic migration:
- Property names changed from PascalCase to camelCase (e.g.,
RemixTarget→target) - Rule storage changed from indexed arrays to associative arrays
- Craft 4 is no longer supported — use the 0.x line for Craft 4
The migration runs automatically when you update. Back up your database first.
Installation
You can install this plugin from the Plugin Store or with Composer.
Requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.
With Composer
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require mlathrom/craft-remix # tell Craft to install the plugin ./craft plugin/install remix