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