plugin:pagemod
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:pagemod [2018-10-17 20:03] – [Incrementing number (by 1)] florious | plugin:pagemod [2024-01-20 07:55] (current) – Aleksandr | ||
---|---|---|---|
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, Igor |
depends | depends | ||
conflicts | conflicts | ||
Line 23: | Line 23: | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
+ | |||
===== Overview ===== | ===== Overview ===== | ||
Line 50: | Line 51: | ||
That's it. | That's it. | ||
+ | |||
===== Usage ===== | ===== Usage ===== | ||
+ | |||
+ | |||
==== Form Syntax ==== | ==== Form Syntax ==== | ||
Line 70: | Line 74: | ||
* Relative pageids, which are solved with respect to current page (e.g. '' | * Relative pageids, which are solved with respect to current page (e.g. '' | ||
* **_self** to denote the same page as the form | * **_self** to denote the same page as the form | ||
- | * '' | + | * '' |
- | + | ||
+ | |||
==== Template Syntax ==== | ==== Template Syntax ==== | ||
Defining a pagemod template is done within a page with the following code: | Defining a pagemod template is done within a page with the following code: | ||
+ | |||
< | < | ||
<pagemod < | <pagemod < | ||
Line 85: | Line 91: | ||
Some other wiki text around, that is visible again. | Some other wiki text around, that is visible again. | ||
</ | </ | ||
+ | |||
Or an real example for adding rows to a table: | Or an real example for adding rows to a table: | ||
+ | |||
< | < | ||
Some more text, and a table with as last row the pagemod placeholder. | Some more text, and a table with as last row the pagemod placeholder. | ||
Line 98: | Line 106: | ||
The pagemod enclosure starts with: | The pagemod enclosure starts with: | ||
- | < | + | |
- | <pagemod < | + | <pagemod < |
- | </ | + | |
where the following is true: | where the following is true: | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 112: | Line 120: | ||
</ | </ | ||
- | and the contents are not shown when the wiki page is viewed. | + | 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: |
===Meta variables=== | ===Meta variables=== | ||
+ | |||
The meta variable are some extra variables for the pagemod plugin. The meta variables values are generated by the plugin at runtime. They are the following: | The meta variable are some extra variables for the pagemod plugin. The meta variables values are generated by the plugin at runtime. They are the following: | ||
Line 128: | Line 138: | ||
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 138: | Line 149: | ||
* Both of them has auto incrementing counter on each succesfull submit. | * Both of them has auto incrementing counter on each succesfull submit. | ||
- | <file> | + | <code> |
number " | number " | ||
number " | number " | ||
Line 145: | Line 156: | ||
number " | number " | ||
number " | number " | ||
- | </ | + | </code> |
+ | |||
+ | |||
+ | ==== Upload ==== | ||
+ | |||
+ | For the moment, // | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **On the same page example: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | action pagemod _self add_sale | ||
+ | |||
+ | fieldset "Add your bits to the table" ! | ||
+ | number "Nr. de ordine internă automat" | ||
+ | date "Data începerii melodiei" | ||
+ | select | ||
+ | textbox | ||
+ | textbox | ||
+ | |||
+ | |||
+ | fieldset | ||
+ | textbox | ||
+ | select | ||
+ | |||
+ | fieldset | ||
+ | number | ||
+ | textbox | ||
+ | |||
+ | fieldset | ||
+ | select | ||
+ | number | ||
+ | |||
+ | fieldset | ||
+ | yesno " | ||
+ | |||
+ | fieldset | ||
+ | textbox | ||
+ | number | ||
+ | |||
+ | |||
+ | fieldset | ||
+ | yesno " | ||
+ | |||
+ | fieldset | ||
+ | file " | ||
+ | |||
+ | hidden " | ||
+ | hidden " | ||
+ | |||
+ | hidden " | ||
+ | hidden " | ||
+ | |||
+ | fieldset | ||
+ | submit " | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ^ Nr. ^ Data Automata | ||
+ | | a12 | 06 Nov 2018 | 2018-11-06 | ||
+ | <pagemod add_sale> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | --- [[user>florious|Florin C.]] // | ||
Line 182: | Line 262: | ||
===== Bugs and feature requests===== | ===== Bugs and feature requests===== | ||
- | The pagemod plugin is strong related | + | The pagemod plugin is strongly intertwined |
Please report issues and requests for Pagemod Plugin at https:// | Please report issues and requests for Pagemod Plugin at https:// | ||
- | 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 280: | ||
< // | < // | ||
< | < | ||
+ | |||
===== Example usecases ===== | ===== Example usecases ===== | ||
Line 209: | Line 291: | ||
* Extending an existing table | * Extending an existing table | ||
* Adding additional list items | * Adding additional list items | ||
+ | |||
==== Minimalistic Guestbook ==== | ==== Minimalistic Guestbook ==== | ||
I used this plugin for a minimalistic guestbook. Although my wiki can be edited by everyone, I think visitors would be more willing to leave a message through a little form. See http:// | I used this plugin for a minimalistic guestbook. Although my wiki can be edited by everyone, I think visitors would be more willing to leave a message through a little form. See http:// | ||
- | <file> | + | |
+ | <code> | ||
======Guestbook===== | ======Guestbook===== | ||
+ | |||
===== New Comment ===== | ===== New Comment ===== | ||
+ | |||
< | < | ||
action pagemod _self add_comment | action pagemod _self add_comment | ||
Line 226: | Line 312: | ||
===== Comments ===== | ===== Comments ===== | ||
+ | |||
<pagemod add_comment output_after> | <pagemod add_comment output_after> | ||
// | // | ||
Line 231: | Line 318: | ||
|< | |< | ||
</ | </ | ||
- | </file> | + | </code> |
- | --- //M. 2010/ | + | --- //M. 2010/ |
plugin/pagemod.1539799401.txt.gz · Last modified: 2018-10-17 20:03 by florious