DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structupdate

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:structupdate [2021-02-18 10:15] solewniczakplugin:structupdate [2024-04-16 16:01] (current) – [Syntax and usage] typo asheenlevrai
Line 11: Line 11:
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : struct
  
-downloadurl: https://github.com/gkrid/dokuwiki-plugin-structupdate/zipball/master+downloadurl: https://github.com/gkrid/dokuwiki-plugin-structupdate/archive/main.zip
 bugtracker : https://github.com/gkrid/dokuwiki-plugin-structupdate/issues bugtracker : https://github.com/gkrid/dokuwiki-plugin-structupdate/issues
 sourcerepo : https://github.com/gkrid/dokuwiki-plugin-structupdate/ sourcerepo : https://github.com/gkrid/dokuwiki-plugin-structupdate/
Line 28: Line 28:
 Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-===== Synatx and usage =====+===== Syntax and usage =====
  
 This plugins adds additional action to [[plugin:struct:bureaucracy|struct bureaucracy integration]]: ''structupdate_udpate''. This action allows you to replace the struct data on the current page with new data provided by the bureaucracy form. For example: This plugins adds additional action to [[plugin:struct:bureaucracy|struct bureaucracy integration]]: ''structupdate_udpate''. This action allows you to replace the struct data on the current page with new data provided by the bureaucracy form. For example:
Line 41: Line 41:
  
 The above syntax will create the form that will allow to modify the "example" schema data assigned to the current page (the page with the form). The above syntax will create the form that will allow to modify the "example" schema data assigned to the current page (the page with the form).
 +
 +Only the fields that are displayed in the form will be modified, the rest will be kept. So the syntax:
 +
 +<code>
 +<form>
 +action structupdate_update
 +struct_field example.fld
 +submit
 +</form>
 +</code>
 +
 +will modify only the field "fld" from the "example" schema.
  
 Current version doesn't support pre-filling the form with the current fields' values but work is in the progress. Current version doesn't support pre-filling the form with the current fields' values but work is in the progress.
  
  
plugin/structupdate.1613639700.txt.gz · Last modified: 2021-02-18 10:15 by solewniczak

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