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