DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pagemod

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:pagemod [2018-10-17 20:03]
florious [Incrementing number (by 1)]
plugin:pagemod [2020-08-19 09:36] (current)
LMS23
Line 7: Line 7:
 type       : syntax type       : syntax
 lastupdate : 2014-11-10 lastupdate : 2014-11-10
-compatible : 2016-06-26, Detritus, Hrun, Ponder Stibbons+compatible : 2016-06-26, Detritus, Hrun, Ponder Stibbons, Greebo, Hogfather
 depends    : bureaucracy depends    : bureaucracy
 conflicts  conflicts 
Line 23: Line 23:
  
 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.
 +
 +\\
 +\\
  
 ===== Overview ===== ===== Overview =====
Line 50: Line 53:
  
 That's it. That's it.
 +\\
 +\\
  
 ===== Usage ===== ===== Usage =====
 +\\
 +
 ==== Form Syntax ==== ==== Form Syntax ====
  
Line 70: Line 77:
     * Relative pageids, which are solved with respect to current page (e.g. ''.:neighbourpage'')     * Relative pageids, which are solved with respect to current page (e.g. ''.:neighbourpage'')
     * **_self** to denote the same page as the form     * **_self** to denote the same page as the form
-  * ''pagemod_id'' : If using multiple pagemod enclosures in a page, this is to identify which enclosure to fill and include in the page. +  * ''pagemod_id'' : If using multiple pagemod enclosures in a page, this is to identify which enclosure to fill and include in the page. **NOTE: the ''pagemod_id'' value cannot include a dash character ("-"). A dash character will break the ''<pagemod>...</pagemod>'' section such that it will render as mere text and not function. The underscore character ("_") works.** 
-    +\\ 
 +   
 ==== Template Syntax ==== ==== Template Syntax ====
  
Line 113: Line 121:
  
 and the contents are not shown when the wiki page is viewed.  Converting of the contents of the pagemod enclosure is done with the [[plugin:bureaucracy]] plugin's replacements function. So similar patterns are available. and the contents are not shown when the wiki page is viewed.  Converting of the contents of the pagemod enclosure is done with the [[plugin:bureaucracy]] plugin's replacements function. So similar patterns are available.
 +\\
  
 ===Meta variables=== ===Meta variables===
Line 128: Line 137:
  
 New meta information tag requests should be sent to me for implementation. New meta information tag requests should be sent to me for implementation.
 +\\
  
 ==== Incrementing number (by 1) ==== ==== Incrementing number (by 1) ====
Line 146: Line 156:
 number "Sixth" ++ 000 number "Sixth" ++ 000
 </file> </file>
 +
 +\\
 +==== Upload ====
 +For the moment,  //2019-04-02 14:53// the pagemod upload do not work right of the box. it needs the patpatch offered here:
 +
 +[[https://github.com/BaselineIT/dokuwiki-pagemod/blob/891b6465a4b2a1db1d548611cc2584b49ec815c1/helper/pagemod.php]]
 +
 +
 +
 +**On the same page example:**
 +
 +<file>
 +<form>
 +action pagemod _self add_sale
 +
 +fieldset "Add your bits to the table" !
 +number "Nr. de ordine internă automat" ++
 +date "Data începerii melodiei"
 +select   "Supplier" "B&C|Computer Corporation|IT Vision|Compu Cable|Matrix"
 +textbox  "Our Cost (Single)" !
 +textbox  "Quantity Ordered" !
 +
 +
 +fieldset  "Your Order"
 +textbox   "Your Name" !
 +select    "What do you want"  "Car|Blimp" !
 +
 +fieldset  "Car Parameters" "What do you want" "Car"
 +number    "Number of Wheels" !
 +textbox   "Extras" !
 +
 +fieldset  "Blimp Parameters" "What do you want" "Blimp"
 +select    "Filling" "Helium|Hot Air"
 +number    "Size" !
 +
 +fieldset  "Payment" 
 +yesno     "Can you pay right now?" !
 +
 +fieldset  "Details" "Can you pay right now?"
 +textbox   "Name" !
 +number    "Amount" !
 +
 +
 +fieldset  ""
 +yesno     "Incarci un fisier?"
 +
 +fieldset  "" "Incarci un fisier?"
 +file "Incarca un fisier"
 +
 +hidden "acoldesch" "={{"
 +hidden "acolinch" "=}}"
 +
 +hidden "foldedin" "=++Upload|"
 +hidden "foldedout" "=++"
 +
 +fieldset  ""
 +submit "Salveaza"
 +</form>
 +</file>
 +
 +\\
 +
 +<file>
 +<sortable r2>
 +^ Nr.  ^ Data Automata  ^ Date Manuala  ^ Supplier  ^ Our Cost (Single)  ^ Rotile?  ^ Quantity Ordered  ^ Upload  ^
 +| a12 | 06 Nov 2018 | 2018-11-06  | B&C |       | ++Upload|{{..:10_fl.mid}}++ |
 +<pagemod add_sale>| a@@Nr. de ordine internă automat@@ | @@meta.date.format.d M Y@@ | @@Data începerii melodiei@@  | @@Supplier| @@ | @@Quantity Ordered| @@ | @@Filling| @@ | @@Quantity Ordered| @@ | @@foldedin| @@@@acoldesch| @@@@Incarca un fisier| @@@@acolinch| @@@@foldedout| @@ |
 +</pagemod>
 +</sortable>
 +</file>
 + --- [[user>florious|Florin C.]] //2019-04-02 15:10//
 +\\
 +\\
  
  
Line 165: Line 248:
 To update the plugin, click "Update" in the Admin/Plugins section of your DokuWiki. To update the plugin, click "Update" in the Admin/Plugins section of your DokuWiki.
  
 +\\
 +\\
  
 === Manual installation of previous version === === Manual installation of previous version ===
Line 182: Line 267:
 ===== Bugs and feature requests===== ===== Bugs and feature requests=====
  
-The pagemod plugin is strong related with the bureaucracy plugin. For general questions and issues see also the [[bureaucracy|Bureaucracy plugin]] wiki page and the [[https://github.com/splitbrain/dokuwiki-plugin-bureaucracy/issues|Bureaucracy issue tracker]].+The pagemod plugin is strongly intertwined with the bureaucracy plugin. For general questions and issues see also the [[bureaucracy|Bureaucracy plugin]] wiki page and the [[https://github.com/splitbrain/dokuwiki-plugin-bureaucracy/issues|Bureaucracy issue tracker]].
  
 Please report issues and requests for Pagemod Plugin at https://github.com/rendezz/dokuwiki-pagemod/issues Please report issues and requests for Pagemod Plugin at https://github.com/rendezz/dokuwiki-pagemod/issues
  
-QUESTION: Can pagemod be triggerd conditionaly? Let's say there is a form with a yesno field. Could pagemod be called only when the yesno field is checked?+QUESTION: Can pagemod be triggered conditionally? Let's say there is a form with a yesno field. Could pagemod be called only when the yesno field is checked? 
 +\\ 
 +\\
  
 ==== Problem and solution ==== ==== Problem and solution ====
Line 199: Line 286:
   <             //Allow for the substitution os elements of the page name   <             //Allow for the substitution os elements of the page name
   <             $page_to_modify = $this->replace($page_to_modify);   <             $page_to_modify = $this->replace($page_to_modify);
 +\\
 +\\
  
 ===== Example usecases ===== ===== Example usecases =====
Line 224: Line 313:
 submit submit
 </form> </form>
 +\\
 +\\
  
 ===== Comments ===== ===== Comments =====
plugin/pagemod.1539799401.txt.gz · Last modified: 2018-10-17 20:03 by florious