About Runtime Only
An inputfield that renders at runtime, with no data saved to the database.
|Category 1||Admin Helpers|
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
|Category 2||Field Types|
Fieldtype modules that represent a data type used by fields.
Close to stable, but users are advised to be cautious and test thoroughly.*
|Date Added||June 21, 2020|
This module's files should be placed in /site/modules/FieldtypeRuntimeOnly/
How to install or uninstall modules
Not a proper fieldtype because it doesn't save data to the database. The fieldtype only exists to provide a convenient way to add an inputfield to templates that will render some markup at runtime.
For a field named "my_field"...
- Inputfield markup will be rendered from a file at
/site/templates/RuntimeOnly/my_field.php. In addition to the standard ProcessWire variables this file receives:
$page- the page being edited.
$field- the Field object.
$inputfield- the Inputfield object.
- JS file
/site/templates/RuntimeOnly/my_field.jswill be added to admin if that file exists.
- CSS file
/site/templates/RuntimeOnly/my_field.csswill be added to admin if that file exists.
If the RuntimeOnly field is used inside a Repeater field then you can get the Repeater page it is on via
$repeater_page = $inputfield->hasPage; // Use $repeater_page as needed echo "The name of the repeater page is $repeater_page->name";
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.