From 8a644ebb399d235c04268e071f9229f0abe5719c Mon Sep 17 00:00:00 2001 From: vargenau Date: Mon, 9 Mar 2009 15:14:35 +0000 Subject: [PATCH] Add verbatim of examples git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6667 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- pgsrc/Help%2FWikiFormRichPlugin | 242 +++++++++++++++++++++++--------- 1 file changed, 176 insertions(+), 66 deletions(-) diff --git a/pgsrc/Help%2FWikiFormRichPlugin b/pgsrc/Help%2FWikiFormRichPlugin index 691373359..efa2256b6 100644 --- a/pgsrc/Help%2FWikiFormRichPlugin +++ b/pgsrc/Help%2FWikiFormRichPlugin @@ -1,4 +1,4 @@ -Date: Tue, 3 Mar 2009 15:32:44 +0000 +Date: Mon, 9 Mar 2009 16:12:28 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -9,37 +9,35 @@ Content-Type: application/x-phpwiki; Content-Transfer-Encoding: binary Create generic and enhanced forms, with various options: +* editbox[] name=.. value=.. text=.. autocomplete=0|1 +* checkbox[] name=.. value=0|1 checked text=.. +* radio[] name=.. value=.. text=.. +* pulldown[] name=.. value=.. selected=.. text=.. autocomplete=0|1 +* combobox[] name=.. value=.. text=.. method=.. args=.. +* hidden[] name=.. value=.. +* submit[] +* action, submit buttontext, optional cancel button (bool) +* method=get or post, Default: post. - * - editbox[] name=.. value=.. text=.. autocomplete=0|1 - * - checkbox[] name=.. value=0|1 checked text=.. - * - radio[] name=.. value=.. text=.. - * - pulldown[] name=.. value=.. selected=.. text=.. autocomplete=0|1 - * - combobox[] name=.. value=.. text=.. method=.. args=.. - * - hidden[] name=.. value=.. - * - submit[] - * - action, submit buttontext, optional cancel button (bool) - * - method=get or post, Default: post. - -Valid arguments for pulldown and editbox: autocomplete=1, Default: 0
-If autocomplete=1, additional arguments method and args may be used. -autocomplete together with dyn-methods (see below) should be used to handle larger lists (> 500).
-If no method is given, value will be used to fill in the valid values.
-{{{ - method="xmlrpc:name [optional args]" - method="dynxmlrpc:url [optional args]" - method="url:http://server/wiki/method" - method="dynurl:http://server/wiki/method" - method="array:jsvariable" - method="plugin:pluginname [optional args]" -}}} +Valid arguments for pulldown and editbox: autocomplete=1, Default: 0 -The plugin must return a pagelist.
-args are optional arguments, space seperated, for the method.
-A combobox is a pulldown with autocomplete=1.
+If autocomplete=1, additional arguments method and args may be used. +autocomplete together with dyn-methods (see below) should be used to handle larger lists (> 500). -== Author -* [[PhpWiki:ReiniUrban|Reini Urban]] +If no method is given, value will be used to fill in the valid values. + +{{{ +method="xmlrpc:name [optional args]" +method="dynxmlrpc:url [optional args]" +method="url:http://server/wiki/method" +method="dynurl:http://server/wiki/method" +method="array:jsvariable" +method="plugin:pluginname [optional args]" +}}} +* The plugin must return a pagelist. +* args are optional arguments, space seperated, for the method. +* A combobox is a pulldown with autocomplete=1. * Values which are constants are evaluated. * The cancel button must be supported by the action (just some wikiadmin actions so far) * improve layout by: nobr=1 @@ -47,67 +45,179 @@ A combobox is a pulldown with autocomplete=1.
== Samples +{{{ <> + checkbox[] name=include value="all" + editbox[] name=directory value=DEFAULT_DUMP_DIR + editbox[] name=pages value=* + editbox[] name=exclude value="" +>> +}}} + +<> + ---- + +{{{ <> + editbox[] name=directory value=HTML_DUMP_DIR + editbox[] name=pages value="*" + editbox[] name=exclude value="" +>> +}}} + +<> + ---- + +{{{ <> + editbox[] name=source value=DEFAULT_WIKI_PGSRC + checkbox[] name=overwrite value=1 + editbox[] name=exclude value="" +>> +}}} + +<> + ---- + +{{{ +<> +}}} + <> + editbox[] name=s text="" + submit[] + checkbox[] name=case_exact + checkbox[] name=regex +>> + ---- + +{{{ <> + editbox[] name=s text="" + submit[] + checkbox[] name=case_exact + checkbox[] name=regex +>> +}}} + +<> + ---- + +{{{ <> + editbox[] name=s text="" + submit[] + checkbox[] name=case_exact +>> +}}} + +<> + ---- + +{{{ < - >> + radio[] name=s value= +>> +}}} + +< +>> + ---- + +{{{ +< + submit[] +>> +}}} + < - submit[] - >> + combobox[] name=s text="" style="width:60px" value= + submit[] +>> + ---- + +{{{ +< +>> +}}} + < - >> + pulldown[] name=s text="Categories: " value= +>> + ---- + +{{{ <> + combobox[] name=relation method="xmlrpc:listRelations" + submit[] + checkbox[] name=case_exact text="Case-exact?" +>> +}}} + ---- + +{{{ <> + combobox[] name=s text="Template: " method="plugin:titleSearch s=Template*" + submit[] +>> +}}} + +<> + ---- + +{{{ <> + editbox[] name=page text="GoTo: " method="dynxmlrpc:titleSearch s=H" style="width:100px" autocomplete=1 + submit[] +>> +}}} + +== Author +* [[PhpWiki:ReiniUrban|Reini Urban]] ---- -- 2.45.0