/[pub]/suikawiki/script/misc/plugins/form/link.wp2
Suika

Contents of /suikawiki/script/misc/plugins/form/link.wp2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Feb 1 12:08:21 2004 UTC (22 years, 3 months ago) by wakaba
Branch: MAIN
CVS Tags: suikawiki3-redirect, release-3-0-0, HEAD
Branch point for: paragraph-200404, helowiki, helowiki-2005
New

1 #?SuikaWikiConfig/2.0
2
3 Plugin:
4 @Name: WikiFormAsLink
5 @FullName:
6 WikiForm: Form as hyperlink
7 @Description:
8 @@@:
9 This plugin module provides some styles of forms
10 can be used as hyperlink.
11 @@lang: en
12 @License: %%GPL%%
13 @Author[list]:
14 Wakaba <w@suika.fam.cx>
15 @Date.RCS: $Date: 2004/01/16 07:50:17 $
16 @RequiredModule[list]:
17 WikiFormCore
18
19 PluginConst:
20 @NS_XHTML1:
21 http://www.w3.org/1999/xhtml
22
23 FormattingRule:
24 @Category[list]: form-input
25 @Name: wfl--link-to-wikipage
26 @Description:
27 @@@: Linking to a WikiPage, as a form
28 @@lang: en
29 @Parameter:
30 @@Name: content
31 @@Type: format
32 @@Default:""
33 @@Description:
34 @@@@: Form content.
35 @@@lang:en
36 @Formatting:
37 __ATTRTEXT:%content__;
38 SuikaWiki::Plugin->module_package ('WikiFormCore')
39 ->make_form_in_html
40 ($p->{-parent}, $p->{content},
41 wiki => $o->{wiki},
42 o => $o,
43 index => -1,
44 output => {
45 http_method => 'get',
46 },);
47
48 FormattingRule:
49 @Category[list]:form-input
50 @Name: wfl--hidden-mode
51 @Description:
52 @@@: Specifying mode, to be used with wfl--link-to-wikipage.
53 @@lang:en
54 @Parameter:
55 @@Name: mode
56 @@Type: mode
57 @@Default:"default"
58 @@Description:
59 @@@: Mode name.
60 @@lang:en
61 @Formatting:
62 for ($p->{-parent}->append_new_node
63 (type => '#element',
64 namespace_uri => $NS_XHTML1,
65 local_name => 'input')) {
66 $_->set_attribute (type => 'hidden');
67 $_->set_attribute (name => 'mode');
68 __ATTRTEXT:%mode__;
69 $_->set_attribute (value => $p->{mode} || 'default');
70 $_->option (use_EmptyElemTag => 1);
71 }
72

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24