Skip to content

Mystique

Mystique (trk/mystique) lets you define groups of ProcessWire subfields in version-controlled PHP arrays, dynamic PHP Closures, JSON config files, or inline field JSON, and store their values in a single queryable JSON database column on any template.

Zero-Table-Bloat Structured Fields

Replace dozens of one-off ProcessWire fields with a single FieldtypeMystique field backed by LONGTEXT, MEDIUMTEXT, TEXT, or native MySQL JSON.

Reusable @fieldset Partials

Share address, pricing, SEO, or metadata fieldsets across resources with fieldset, tab, or inline layouts, automatic prefixing, overrides, and showIf rewriting.

Native ProcessWire Types

Read real Page, PageArray, Pageimage, Pageimages, Pagefile, Pagefiles, and formatted Datetime objects directly from $page->my_mystique, including AJAX drag-and-drop uploads and RepeaterMatrix support.

Type-Aware JSON Selectors

Query subfields directly with $pages->find() using numeric casts, JSON_CONTAINS, multi-language COALESCE, !=, empty checks, FULLTEXT search, and ProcessWire Lister integration.

Installing Mystique automatically installs its companion modules and ships an IDE field helper:

Class Role
Mystique Core module (autoload => true, singular => true) exposing 23 Mystique::* Inputfield constants, RepeaterAssetPreloader, MystiqueFileAjaxHandler, and media/cache lifecycle hooks.
FieldtypeMystique Persists and queries structured subfield JSON, synchronizes values against live schemas, and exposes MystiqueQueryEngine and SubfieldMigrationTools.
InputfieldMystique Renders dynamic form controls, nested fieldsets, tabs, showIf/requiredIf dependencies, and optional JSON import/export panels inside the ProcessWire Page editor.
MystiqueField Companion Field subclass providing IDE @property autocompletion for all 9 Mystique field settings.
Requirement Version
PHP 8.4+
ProcessWire 3.0.210+
First-Party Module Dependencies None (standalone module)

Next steps