...
Table of Contents |
---|
Nodes
It is possible to supply user-defined fields when editing a node, for example:
There is a new tab with title 'Extra-Fields' and inside that tab are 2 user-defined fields: 'Contact Person' and 'Customer ID' - these will be saved with the node configuration data.
How To Enable
Extra fields are controlled using the Form Schema feature. Create a new schema file: /usr/local/opmojo/conf/form_schema/node_admin.json
(adjust path to suit your installation location)
The content of the file should look something like this:
Code Block |
---|
{
"label": "Custom node fields",
"description": "Edit in conf/form_schema/admin_nodes.json",
"component": ["confignode_admin"],
"tags": ["node"],
"schema": {
"customerId": {
"title": "Customer ID",
"type": "Text"
},
"contact": {
"title": "Contact Person",
"type": "Text"
}
}
} |
Refer to the documentation on the Form Schema page for more information on available options