Skip to content

FormPattern Configs

levhita edited this page Jan 22, 2012 · 1 revision

Variables

You can set variables that then can be used in another place and even be concatenated at runtime

_table_name: example
__general:
  form_title: "Edit {_table_name}"
__commands:
  hide: ["{_table_name}_id"]  

Importing

To import another config into this use a named import.

_import1: [measures_register.yaml]

The import acts a include in php, you can feed some variables first, so it could act as parameter for the imported file, or set some variables in the import son your current config can adjust to them:

For consecutive imports use consecutive numbers:

_import1: [first_include.yaml]
// Something else
_import2: [second_include.yaml]
// Something else
_import3: [tird_include.yaml]

You can import several files in one import clause:

_import1: [first_include.yaml, second_include.yaml]

You can include the variables contained in one section of the imported file:

_import1: [first_include.yaml<section>]
Clone this wiki locally