plugin:struct:bureaucracy
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:struct:bureaucracy [2016-03-30 15:17] – created andi | plugin:struct:bureaucracy [2024-05-05 19:43] (current) – [Struct Plugin: Bureaucracy Support] - plugin:struct zweihorn | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <= [[plugin: | ||
+ | |||
====== Struct Plugin: Bureaucracy Support ====== | ====== Struct Plugin: Bureaucracy Support ====== | ||
- | The struct | + | The [[plugin: |
===== Single Field ===== | ===== Single Field ===== | ||
- | You can use any field from any defined schema as a a field in a bureaucracy | + | You can use any field from any defined schema as a field in a Bureaucracy |
< | < | ||
Line 17: | Line 19: | ||
The defined (translated) label will automatically be used for the field as well as all the validation rules configured in the schema. | The defined (translated) label will automatically be used for the field as well as all the validation rules configured in the schema. | ||
- | You can use the the value entered in a struct | + | You can use the value entered in a Struct |
+ | |||
+ | All Struct values will be assigned to the resulting pages of (when using the Bureaucracy template action), provided the schema assignments match. | ||
+ | |||
+ | ===== Complete Schema ===== | ||
+ | |||
+ | Instead of adding individual fields to a Bureaucracy form as described above, you can also add a whole schema to the form. To do so, simply use the '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | Action template templates: | ||
+ | textbox name @ | ||
+ | struct_schema " | ||
+ | submit " | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Please note that all additional parameters given will be added to each individual field. Eg. you can only make all fields of the schema mandatory or optional. | ||
+ | |||
+ | In this way you can't use '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | Action template templates: | ||
+ | textbox name @ | ||
+ | struct_schema " | ||
+ | submit " | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Action struct_lookup ===== | ||
+ | |||
+ | You can save data from bureaucracy forms into lookup schema, using '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | action struct_lookup | ||
+ | struct_field " | ||
+ | submit "Save into lookup" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Prefilling ==== | ||
+ | |||
+ | You can prefill fields by adding a '' | ||
+ | When you set a '' | ||
+ | For Lookup-Fields on Page-Schemes you must setup the complete namespace to the target (e.g. '' | ||
+ | |||
+ | Following code | ||
+ | |||
+ | < | ||
+ | < | ||
+ | action struct_lookup | ||
+ | struct_field " | ||
+ | struct_field " | ||
+ | struct_field " | ||
+ | struct_fieldhidden " | ||
+ | submit "Save into lookup" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | will result in this (localized in Schema-Editor): | ||
+ | |||
+ | {{https:// | ||
- | All struct values will be assigned to the resulting pages of (when using the bureaucracy template action), provided the schema assignments match. |
plugin/struct/bureaucracy.txt · Last modified: 2024-05-05 19:43 by zweihorn