]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FWikiFormRichPlugin
Do not execute example
[SourceForge/phpwiki.git] / pgsrc / Help%2FWikiFormRichPlugin
1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FWikiFormRichPlugin;
6   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 Create generic and enhanced forms, with various options:
12 * editbox[]            name=.. value=.. text=.. autocomplete=0|1
13 * checkbox[]           name=.. value=0|1 checked text=..
14 * radio[]              name=.. value=.. text=..
15 * pulldown[]           name=.. value=.. selected=.. text=.. autocomplete=0|1
16 * combobox[]           name=.. value=.. text=.. method=.. args=..
17 * hidden[]             name=.. value=..
18 * submit[]
19 * action, submit buttontext, optional cancel button (bool)
20 * method=get or post, Default: post.
21
22 Valid arguments for pulldown and editbox: autocomplete=1, Default: 0
23
24 If autocomplete=1, additional arguments method and args may be used.
25 autocomplete together with dyn-methods (see below) should be used to handle larger lists (> 500).
26
27 If no method is given, value will be used to fill in the valid values.
28
29 {{{
30 method="xmlrpc:name [optional args]"
31 method="dynxmlrpc:url [optional args]"
32 method="url:http://server/wiki/method"
33 method="dynurl:http://server/wiki/method"
34 method="array:jsvariable"
35 method="plugin:pluginname [optional args]"
36 }}}
37
38 * The plugin must return a pagelist.
39 * args are optional arguments, space seperated, for the method.
40 * A combobox is a pulldown with autocomplete=1.
41 * Values which are constants are evaluated.
42 * The cancel button must be supported by the action (just some wikiadmin actions so far)
43 * improve layout by: nobr=1
44 * some allow values as list from <!plugin-list pluginname args !>
45
46 == Samples ==
47
48 {{{
49 <<WikiFormRich action=dumpserial method=get
50                checkbox[] name=include value="all"
51                editbox[] name=directory value=DEFAULT_DUMP_DIR
52                editbox[] name=pages value=*
53                editbox[] name=exclude value=""
54 >>
55 }}}
56
57 <<WikiFormRich action=dumpserial method=get
58                checkbox[] name=include value="all"
59                editbox[] name=directory value=DEFAULT_DUMP_DIR
60                editbox[] name=pages value=*
61                editbox[] name=exclude value=""
62 >>
63
64 ----
65
66 {{{
67 <<WikiFormRich action=dumphtml method=get
68                editbox[] name=directory value=HTML_DUMP_DIR
69                editbox[] name=pages value="*"
70                editbox[] name=exclude value=""
71 >>
72 }}}
73
74 <<WikiFormRich action=dumphtml method=get
75                editbox[] name=directory value=HTML_DUMP_DIR
76                editbox[] name=pages value="*"
77                editbox[] name=exclude value=""
78 >>
79
80 ----
81
82 {{{
83 <<WikiFormRich action=loadfile method=get
84                editbox[]  name=source value=DEFAULT_WIKI_PGSRC
85                checkbox[] name=overwrite value=1
86                editbox[]  name=exclude value=""
87 >>
88 }}}
89
90 <<WikiFormRich action=loadfile method=get
91                editbox[]  name=source value=DEFAULT_WIKI_PGSRC
92                checkbox[] name=overwrite value=1
93                editbox[]  name=exclude value=""
94 >>
95
96 ----
97
98 {{{
99 <<WikiFormRich action=TitleSearch method=get class=wikiadmin nobr=1
100                editbox[] name=s text=""
101                submit[]
102                checkbox[] name=case_exact
103                checkbox[] name=regex
104 >>
105 }}}
106
107 <<WikiFormRich action=TitleSearch method=get class=wikiadmin nobr=1
108                editbox[] name=s text=""
109                submit[]
110                checkbox[] name=case_exact
111                checkbox[] name=regex
112 >>
113
114 ----
115
116 {{{
117 <<WikiFormRich action=FullTextSearch method=get class=wikiadmin nobr=1
118                editbox[] name=s text=""
119                submit[]
120                checkbox[] name=case_exact
121                checkbox[] name=regex
122 >>
123 }}}
124
125 <<WikiFormRich action=FullTextSearch method=get class=wikiadmin nobr=1
126                editbox[] name=s text=""
127                submit[]
128                checkbox[] name=case_exact
129                checkbox[] name=regex
130 >>
131
132 ----
133
134 {{{
135 <<WikiFormRich action=FuzzyPages method=get class=wikiadmin nobr=1
136                editbox[] name=s text=""
137                submit[]
138                checkbox[] name=case_exact
139 >>
140 }}}
141
142 <<WikiFormRich action=FuzzyPages method=get class=wikiadmin nobr=1
143                editbox[] name=s text=""
144                submit[]
145                checkbox[] name=case_exact
146 >>
147
148 ----
149
150 {{{
151 <<WikiFormRich action=AppendText buttontext="AddPlugin"
152                radio[] name=s value=<!plugin-list BackLinks page=WikiPlugin limit=5 !>
153 >>
154 }}}
155
156 <<WikiFormRich action=AppendText buttontext="AddPlugin"
157                radio[] name=s value=<!plugin-list BackLinks page=WikiPlugin limit=5 !>
158 >>
159
160 ----
161
162 {{{
163 <<WikiFormRich action=AppendText buttontext="AddPlugin"
164                combobox[] name=s text="" style="width:60px" value=<!plugin-list BackLinks page=WikiPlugin !>
165                submit[]
166 >>
167 }}}
168
169 <<WikiFormRich action=AppendText buttontext="AddPlugin"
170                combobox[] name=s text="" style="width:60px" value=<!plugin-list BackLinks page=WikiPlugin !>
171                submit[]
172 >>
173
174 ----
175
176 {{{
177 <<WikiFormRich action=AppendText buttontext="AddCategory"
178                pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>
179 >>
180 }}}
181
182 <<WikiFormRich action=AppendText buttontext="AddCategory"
183                pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>
184 >>
185
186 ----
187
188 {{{
189 <<WikiFormRich action=SemanticSearch buttontext="AddRelation"
190                combobox[] name=relation method="xmlrpc:listRelations"
191                submit[]
192                checkbox[] name=case_exact text="Case-exact?"
193 >>
194 }}}
195
196 ----
197
198 {{{
199 <<WikiFormRich action=AppendText buttontext="InsertTemplate"
200                combobox[] name=s text="Template: " method="plugin:titleSearch s=Template*"
201                submit[]
202 >>
203 }}}
204
205 <<WikiFormRich action=AppendText buttontext="InsertTemplate"
206                combobox[] name=s text="Template: " method="plugin:titleSearch s=Template*"
207                submit[]
208 >>
209
210 ----
211
212 {{{
213 <<WikiFormRich action=GoTo
214                editbox[] name=page text="GoTo: " method="dynxmlrpc:titleSearch s=H" style="width:100px" autocomplete=1
215                submit[]
216 >>
217 }}}
218
219 == Author ==
220 * [[PhpWiki:ReiniUrban|Reini Urban]]
221
222 <noinclude>
223 ----
224 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
225 </noinclude>