DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin: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:bureaucracy [2023-03-09 14:22] – [Template placeholder @DATE@] 212.201.117.6plugin:bureaucracy [2024-05-05 19:42] (current) – [Recommended additional Plugins] -> plugin:struct:bureaucracy zweihorn
Line 6: Line 6:
 email      : andi@splitbrain.org email      : andi@splitbrain.org
 type       : syntax, action type       : syntax, action
-lastupdate : 2022-01-24 +lastupdate : 2023-05-16 
-compatible : Frusterick Manners, Greebo, HogfatherIgor+compatible : Frusterick Manners, Greebo, HogfatherIgor, Jack Jackrum, Kaos
 depends    :  depends    : 
 conflicts  : bureaucracyau, form conflicts  : bureaucracyau, form
Line 40: Line 40:
 When you use Bureaucracy's //template// action, you can add in the template a dataentry of the [[Data]] plugin that structures and stores your information for good accessibility, whereas the dataentry you can use placeholders of bureaucracy to place information from the form. When you use Bureaucracy's //template// action, you can add in the template a dataentry of the [[Data]] plugin that structures and stores your information for good accessibility, whereas the dataentry you can use placeholders of bureaucracy to place information from the form.
  
-The recent [[Struct]] plugin draws heavy inspiration from the data plugin and allows for central management of wanted structured data while keeping the functionality of the data plugin. The struct plugin supports integration with the Bureaucracy Plugin. This allows reusing the input mechanisms of the different types in Bureaucracy forms and creation of structured data when pages are created through Bureaucracy's template action.+The recent [[Struct]] plugin draws heavy inspiration from the data plugin and allows for central management of wanted structured data while keeping the functionality of the data plugin. The struct plugin supports [[plugin:struct:bureaucracy|integration with the Bureaucracy Plugin]]. This allows reusing the input mechanisms of the different types in Bureaucracy forms and creation of structured data when pages are created through Bureaucracy's template action.
  
 === Additional Actions === === Additional Actions ===
Line 157: Line 157:
     * needs a label     * needs a label
     * needs a second argument containing the select options separated by a pipe ''|'' char\\ (''%% "Peaches|Apples|Oranges" %%'')     * needs a second argument containing the select options separated by a pipe ''|'' char\\ (''%% "Peaches|Apples|Oranges" %%'')
-    * example: ''multiselect "Label" "Opt1|Opt2|Opt3" =Opt1,Opt3''+    * example: ''%% multiselect "Label" "Opt1|Opt2|Opt3" =Opt1,Opt3 %%''
     * In mail action: all options will be joined by "'', ''" in e-mail message     * In mail action: all options will be joined by "'', ''" in e-mail message
     * In template action:     * In template action:
Line 284: Line 284:
  
 <code> <code>
-  * field  = Tell us about yourself"+  * field  = Tell us about yourself
   * name   = Your Name   * name   = Your Name
   * age    = Your Age   * age    = Your Age
Line 507: Line 507:
 | %Y %F %a %Y-%m-%d %s... etc               | [[phpfn>strftime]] parameters to refer to current time   | | %Y %F %a %Y-%m-%d %s... etc               | [[phpfn>strftime]] parameters to refer to current time   |
 | <nowiki>%%</nowiki>                       | Replaced by ''%'' char, needed to avoid accidental time replacements in your template.| | <nowiki>%%</nowiki>                       | Replaced by ''%'' char, needed to avoid accidental time replacements in your template.|
-|''<nowiki>@DATE(<datetime>,%%Y-%%m-%%e)@</nowiki>''\\ ''@DATE(<datetime>)@''  | Accepts different [[phpfn>class.datetime|datetime]] formats, which are outputted in the requested [[phpfn>strftime]] format. If no format is provided, date is returned with format of the [[config:dformat]] setting. |+|''<nowiki>@DATE(<datetime>,%%Y-%%m-%%d)@</nowiki>''\\ ''@DATE(<datetime>)@''  | Accepts different [[phpfn>class.datetime|datetime]] formats, which are outputted in the requested [[phpfn>strftime]] format. If no format is provided, date is returned with format of the [[config:dformat]] setting. ([[plugin:bureaucracy#template_placeholder_date|Example]]) |
 | ''@ID@ @USER@ @MAIL@'' ... etc | DokuWiki [[:namespace_templates#replacement_patterns|replacement patterns]] for templates are available too | | ''@ID@ @USER@ @MAIL@'' ... etc | DokuWiki [[:namespace_templates#replacement_patterns|replacement patterns]] for templates are available too |
 | ''@FORMPAGE_ID@ @FORMPAGE_NS@ @FORMPAGE_CURNS@'' ... etc | Works like [[:namespace_templates#replacement_patterns|replacement patterns]] but refers to the page with the form | | ''@FORMPAGE_ID@ @FORMPAGE_NS@ @FORMPAGE_CURNS@'' ... etc | Works like [[:namespace_templates#replacement_patterns|replacement patterns]] but refers to the page with the form |
Line 635: Line 635:
   hidden "backtrack" "=@DATE(now -3 years,%%Y-%%m-%%d)@"   hidden "backtrack" "=@DATE(now -3 years,%%Y-%%m-%%d)@"
  
-  * in the template placeholder @DATE(...,...)@ the first parameter (before the comma) with the [[phpfn>class.datetime|datetime]] format can be used, for example, to dynamically calculate a date relative to today's date, powered by the php function [[phpfn>datetime.modify]] -> note the specific whitespaces pattern in the syntax+  * in the template placeholder @DATE(...,...)@ the first parameter (before the comma) with the [[phpfn>class.datetime|datetime]] format can be used, for example, to dynamically calculate a date relative to today's date, powered by the php function [[phpfn>datetime.modify]] -> note specific locations of whitespaces in the syntax
   * the second parameter (behind the comma) with the strftime syntax can be used for formating the date output, as needed -> note that % in the [[phpfn>strftime]] parameters here have to be escaped by %%   * the second parameter (behind the comma) with the strftime syntax can be used for formating the date output, as needed -> note that % in the [[phpfn>strftime]] parameters here have to be escaped by %%
  
Line 820: Line 820:
  
   * [[:tips:button_align|How to align a <button> element?]]   * [[:tips:button_align|How to align a <button> element?]]
-  * User-Forum: [[https://forum.dokuwiki.org/thread/13956|Left align in Bureaucracy Plugin]]+  * User-Forum: [[https://forum.dokuwiki.org/d/13956|Left align in Bureaucracy Plugin]]
  
 ===== Issues ===== ===== Issues =====
  
 Please report bug or feature request on the [[https://github.com/splitbrain/dokuwiki-plugin-bureaucracy/issues|Github bugtracker]]. Please report bug or feature request on the [[https://github.com/splitbrain/dokuwiki-plugin-bureaucracy/issues|Github bugtracker]].
plugin/bureaucracy.1678368142.txt.gz · Last modified: 2023-03-09 14:22 by 212.201.117.6

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