plugin:struct:bureaucracy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:struct:bureaucracy [2016-03-31 15:56] – andi | plugin:struct:bureaucracy [2022-11-04 07:38] – [Prefilling] Add image, Clarification on the format of the data saggi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <= [[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 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 | + | All Struct |
===== Complete Schema ===== | ===== Complete Schema ===== | ||
- | Instead of adding individual fields to a bureaucracy | + | Instead of adding individual fields to a Bureaucracy |
< | < | ||
Line 29: | Line 31: | ||
Action template templates: | Action template templates: | ||
textbox name @ | textbox name @ | ||
- | struct_schema "product" ! | + | struct_schema "products" ! |
submit " | submit " | ||
</ | </ | ||
Line 35: | Line 37: | ||
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. | ||
+ | |||
+ | 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:// | ||
+ |
plugin/struct/bureaucracy.txt · Last modified: 2024-05-05 19:43 by zweihorn