plugin:pagemod
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
plugin:pagemod [2022-08-03 19:58] – LMS23 | plugin:pagemod [2024-01-20 07:55] (current) – Aleksandr | ||
---|---|---|---|
Line 24: | Line 24: | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
- | \\ | ||
- | \\ | ||
===== Overview ===== | ===== Overview ===== | ||
Line 53: | Line 51: | ||
That's it. | That's it. | ||
- | \\ | + | |
- | \\ | + | |
===== Usage ===== | ===== Usage ===== | ||
- | \\ | + | |
==== Form Syntax ==== | ==== Form Syntax ==== | ||
Line 78: | Line 75: | ||
* **_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 93: | 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 106: | 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 120: | 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 137: | 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 148: | 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 155: | Line 156: | ||
number " | number " | ||
number " | number " | ||
- | </file> | + | </code> |
- | \\ | ||
==== Upload ==== | ==== Upload ==== | ||
- | For the moment, | + | |
+ | For the moment, // | ||
[[https:// | [[https:// | ||
- | |||
- | |||
**On the same page example:** | **On the same page example:** | ||
- | <file> | + | <code> |
< | < | ||
action pagemod _self add_sale | action pagemod _self add_sale | ||
Line 214: | Line 214: | ||
submit " | submit " | ||
</ | </ | ||
- | </file> | + | </code> |
- | \\ | + | <code> |
- | + | ||
- | <file> | + | |
< | < | ||
^ Nr. ^ Data Automata | ^ Nr. ^ Data Automata | ||
Line 225: | Line 223: | ||
</ | </ | ||
</ | </ | ||
- | </file> | + | </code> |
- | --- [[user> | + | |
- | \\ | + | --- [[user> |
- | \\ | + | |
Line 248: | Line 245: | ||
To update the plugin, click " | To update the plugin, click " | ||
- | \\ | ||
- | \\ | ||
=== Manual installation of previous version === | === Manual installation of previous version === | ||
Line 272: | Line 267: | ||
QUESTION: Can pagemod be triggered conditionally? | QUESTION: Can pagemod be triggered conditionally? | ||
- | \\ | + | |
- | \\ | + | |
==== Problem and solution ==== | ==== Problem and solution ==== | ||
Line 286: | Line 280: | ||
< // | < // | ||
< | < | ||
- | \\ | + | |
- | \\ | + | |
===== Example usecases ===== | ===== Example usecases ===== | ||
Line 298: | 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 313: | Line 310: | ||
submit | submit | ||
</ | </ | ||
- | \\ | ||
- | \\ | ||
===== Comments ===== | ===== Comments ===== | ||
+ | |||
<pagemod add_comment output_after> | <pagemod add_comment output_after> | ||
// | // | ||
Line 322: | Line 318: | ||
|< | |< | ||
</ | </ | ||
- | </file> | + | </code> |
- | --- //M. 2010/ | + | --- //M. 2010/ |
plugin/pagemod.txt · Last modified: 2024-01-20 07:55 by Aleksandr