plugin:struct:bureaucracy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:struct:bureaucracy [2017-10-27 15:39] – [Single Field] 192.135.19.10 | plugin:struct:bureaucracy [2022-11-04 07:38] (current) – [Prefilling] Add image, Clarification on the format of the data saggi | ||
---|---|---|---|
Line 1: | Line 1: | ||
<= [[plugin: | <= [[plugin: | ||
+ | |||
====== Struct Plugin: Bureaucracy Support ====== | ====== Struct Plugin: Bureaucracy Support ====== | ||
- | The struct plugin | + | The Struct Plugin |
===== Single Field ===== | ===== Single Field ===== | ||
- | You can use any field from any defined schema as a field in a bureaucracy | + | You can use any field from any defined schema as a field in a Bureaucracy |
< | < | ||
Line 18: | 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 value entered in a struct | + | You can use the value entered in a Struct |
- | All struct | + | All Struct |
===== Complete Schema ===== | ===== Complete Schema ===== | ||
- | Instead of adding individual fields to a bureaucracy | + | Instead of adding individual fields to a Bureaucracy |
< | < | ||
Line 30: | Line 31: | ||
Action template templates: | Action template templates: | ||
textbox name @ | textbox name @ | ||
- | struct_schema "product" ! | + | struct_schema "products" ! |
submit " | submit " | ||
</ | </ | ||
Line 37: | Line 38: | ||
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. | 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. | ||
- | ===== Templates | + | 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:// | ||
- | At the Moment it isn't possible to use pre-filled fields as templates in the Bureaucracy - fieldset. |
plugin/struct/bureaucracy.1509111559.txt.gz · Last modified: 2017-10-27 15:39 by 192.135.19.10