Download the PHP package trk/mystique without Composer
On this page you can find all versions of the php package trk/mystique. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package mystique
Short Description Mystique is a config file based field creation module for ProcessWire CMS/CMF by ALTI VE BIR IT.
License MIT
Homepage https://github.com/trk/Mystique
Informations about the package mystique
Mystique Module for ProcessWire CMS/CMF
Mystique module allow you to create dynamic fields and store dynamic fields data on database by using a config file.
Requirements
- ProcessWire
3.0or newer - PHP
7.0or newer - FieldtypeMystique
- InputfieldMystique
Installation
Install the module from the modules directory:
Via Composer:
Via git clone:
Module in live reaction with your Mystique config file
This mean if you remove a field from your config file, field will be removed from edit screen. As you see on Youtube Video.
Mystique module will check these paths for get config files
- site/modules//configs/`{Mystique..php, mystique..php, mystique..json, Mystique.*.json}`
- site/templates/configs/
{Mystique.*.php, mystique.*.php, mystique.*.json, Mystique.*.json}
All config files need to return a Valid JSON Array or PHP array like examples.
If your config file return a Closure, $page, $field and $value will passed to your config
Usage almost same with ProcessWire Inputfield Api, only difference is attr, attrs, set, wrapAttr, wrapAttrs and showIf usage like on example.
-
site/modules/Mystique/configs/Mystique.magician.php site/modules/Mystique/configs/Mystique.example-dive.php
Example:
site/templates/configs/Mystique.seo-fields.php
Searching data on Mystique field is limited. Because, Mystique saving data to database in json format. When you make search for Mystique field, operator not important. Operator will be changed with %= operator.
