plugin:pagemod
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:pagemod [2015-08-20 02:20] – 220.244.230.6 | plugin:pagemod [2020-08-19 09:36] – LMS23 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== pagemod | + | ====== pagemod |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : info@baseline-remove-this-it.co.za | email : info@baseline-remove-this-it.co.za | ||
type : syntax | type : syntax | ||
lastupdate : 2014-11-10 | lastupdate : 2014-11-10 | ||
- | compatible : Hrun, Ponder Stibbons | + | compatible : 2016-06-26, Detritus, |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
tags : form, create, update, editing | tags : form, create, update, editing | ||
- | screenshot_img : | + | |
downloadurl: | downloadurl: | ||
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
+ | |||
+ | screenshot_img : | ||
---- | ---- | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
+ | |||
+ | \\ | ||
+ | \\ | ||
===== Overview ===== | ===== Overview ===== | ||
Line 33: | Line 38: | ||
* this placeholder is enclosed by the ''< | * this placeholder is enclosed by the ''< | ||
- The form is filled in and submitted. Subsequently the pagemod action extends the target page by including a copy of the placeholder wherein the variables are replaced with the form values. | - The form is filled in and submitted. Subsequently the pagemod action extends the target page by including a copy of the placeholder wherein the variables are replaced with the form values. | ||
- | |||
So here are the features: | So here are the features: | ||
Line 40: | Line 44: | ||
* Each ''< | * Each ''< | ||
* The form can update multiple sections of a page. | * The form can update multiple sections of a page. | ||
- | * All the sections | + | * All the sections |
- | * A person can update page that they **don' | + | * A person can update |
* Only read access is required to modify a page via the form. (This is not a bug, its a feature.) | * Only read access is required to modify a page via the form. (This is not a bug, its a feature.) | ||
* It means you can prevent people from modifying a page unless they do it via a form. | * It means you can prevent people from modifying a page unless they do it via a form. | ||
- | * If want people to only have access to read the resultant page, but not change it, protect the **form** page. | + | * If you want people to only have access to read the resultant page, but not change it, protect the **form** page. |
* No read access to result page for a user, prevents modifying it via form. | * No read access to result page for a user, prevents modifying it via form. | ||
* Updating more pages at once is possible by adding an action field for each page | * Updating more pages at once is possible by adding an action field for each page | ||
That's it. | That's it. | ||
+ | \\ | ||
+ | \\ | ||
===== Usage ===== | ===== Usage ===== | ||
+ | \\ | ||
+ | |||
==== Form Syntax ==== | ==== Form Syntax ==== | ||
Line 69: | Line 77: | ||
* 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 ==== | ||
Line 92: | Line 101: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | **Note:** If the resulting table is later edited with [[plugin: | ||
+ | |||
The pagemod enclosure starts with: | The pagemod enclosure starts with: | ||
Line 109: | Line 121: | ||
and the contents are not shown when the wiki page is viewed. | and the contents are not shown when the wiki page is viewed. | ||
+ | \\ | ||
===Meta variables=== | ===Meta variables=== | ||
Line 124: | 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) ==== | ||
- | ===== FAQ ===== | + | The [[plugin: |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * Both of them has auto incrementing counter on each succesfull submit. | ||
- | ==== Incrementing | + | < |
- | The [[plugin: | + | number |
+ | number | ||
+ | number " | ||
+ | hiddenautoinc | ||
+ | number " | ||
+ | number " | ||
+ | </ | ||
+ | \\ | ||
+ | ==== 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> | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== FAQ ===== | ||
===== Development ===== | ===== Development ===== | ||
+ | |||
In November 2014 the pagemod plugin is updated to use a helper for the pagemod action. The Bureaucracy Plugin is updated in November 2014 as well, it will load this helper automatically if used in a form. The new version of Bureaucracy supports only the new version of Pagemod. | In November 2014 the pagemod plugin is updated to use a helper for the pagemod action. The Bureaucracy Plugin is updated in November 2014 as well, it will load this helper automatically if used in a form. The new version of Bureaucracy supports only the new version of Pagemod. | ||
Remark: the file '' | Remark: the file '' | ||
- | ====Previous versions==== | + | ==== Previous versions ==== |
* http:// | * http:// | ||
Line 146: | Line 248: | ||
To update the plugin, click " | To update the plugin, click " | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | === Manual installation of previous version === | ||
- | **Manual installation of previous version**\\ | ||
In '' | In '' | ||
+ | |||
< | < | ||
pagemod/ | pagemod/ | ||
Line 156: | Line 262: | ||
bureaucracy/ | bureaucracy/ | ||
</ | </ | ||
+ | |||
(note: since November 2014 no files are copied to bureaucracy plugin folder anymore) | (note: since November 2014 no files are copied to bureaucracy plugin folder anymore) | ||
===== 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 triggered conditionally? |
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ==== Problem and solution ==== | ||
+ | |||
+ | The standard pagemod helper code does not do any substitution of page names according to bureaucracy variables. | ||
+ | textbox Hnode | ||
+ | action | ||
+ | the problem being that '' | ||
+ | |||
+ | diff: | ||
+ | 39,40d38 | ||
+ | < // | ||
+ | < | ||
+ | \\ | ||
+ | \\ | ||
===== Example usecases ===== | ===== Example usecases ===== | ||
+ | |||
An bundle of example pages is available: | An bundle of example pages is available: | ||
- | * http:// | + | * http:// |
Content: | Content: | ||
Line 175: | Line 300: | ||
==== 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:// | ||
< | < | ||
Line 187: | Line 313: | ||
submit | submit | ||
</ | </ | ||
+ | \\ | ||
+ | \\ | ||
===== Comments ===== | ===== Comments ===== |
plugin/pagemod.txt · Last modified: 2024-01-20 07:55 by Aleksandr