DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:bureaucracy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:struct:bureaucracy [2020-05-19 15:04] – [Prefilling] formatting Klap-inplugin:struct:bureaucracy [2024-05-05 19:43] (current) – [Struct Plugin: Bureaucracy Support] - plugin:struct zweihorn
Line 3: Line 3:
 ====== Struct Plugin: Bureaucracy Support ====== ====== Struct Plugin: Bureaucracy Support ======
  
-The Struct Plugin supports integration with the [[plugin:bureaucracy|Bureaucracy Plugin]]. This allows reusing the input mechanisms of the different [[plugin:struct:type|types]] in bureaucracy forms and creation of structured data when pages are created through Bureaucracy's template action or saving them into lookup schemas.+The [[plugin:struct|Struct Plugin]] supports integration with the [[plugin:bureaucracy|Bureaucracy Plugin]]. This allows reusing the input mechanisms of the different [[plugin:struct:type|types]] in bureaucracy forms and creation of structured data when pages are created through Bureaucracy's template action or saving them into lookup schemas.
  
 ===== Single Field ===== ===== Single Field =====
Line 64: Line 64:
 ==== Prefilling ==== ==== Prefilling ====
  
-You can prefill fields by adding a ''='' after the field name. You must prefill with data stored in database, not with what you get when table or page are displayed (e.g. dates are in Y-m-d format independet from your locale). +You can prefill fields by adding a ''='' after the field name. You must pre-fill with the formats stored in the database, not the formats you get when the table or page is displayed (e.g. dates are in Y-m-d format, independent of your locale). \\ 
-When you set a ''Text'' use ''%%"=some text"%%'', for a date use ''=2020-01-01'' or simple variables like ''=%Y-%m-%d''+When you set a ''Text'' use ''%%"=some text"%%'', for a date use ''=2020-01-01'' or simple variables like ''=%Y-%m-%d''\\ 
-For Lookup-Fields on Page-Schemes you must setup the complete namespace to the target (e.g. ''%%"=[""ns:ns1:ns2:page"",0]"%%''). For Lookup-Fields in in Lookup-Schemes you must set the ''rid'' (e.g. ''%%"=["""",1]"%%'') of the row. Watch out for the double-quotes! This form is valid for struct-db version 16.+For Lookup-Fields on Page-Schemes you must setup the complete namespace to the target (e.g. ''%%"=[""ns:ns1:ns2:page"",0]"%%''). For Lookup-Fields in in Lookup-Schemes you must set the ''rid'' (e.g. ''%%"=["""",1]"%%'') of the row. Watch out for the double-quotes! This form is valid for struct-db starting from version 16.
  
 Following code Following code
Line 83: Line 83:
 will result in this (localized in Schema-Editor): will result in this (localized in Schema-Editor):
  
-(sorry, can't attach pictures) +{{https://i.ibb.co/B2Q6Y59/sampleform-struct-lookup.png|struct-lookup}}
  
plugin/struct/bureaucracy.1589893480.txt.gz · Last modified: 2020-05-19 15:04 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki