source: products/qPloneGoogleSitemaps/trunk/skins/qPloneGoogleSitemaps/prefs_gsm_settings.cpt @ 48

Last change on this file since 48 was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 8.1 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      xmlns:tal="http://xml.zope.org/namespaces/tal"
4      lang="en-US"
5      metal:use-macro="here/prefs_main_template/macros/master"
6      i18n:domain="qPloneGoogleSitemaps">
7<body>
8    <div metal:fill-slot="prefs_configlet_main"
9        tal:define="errors python:request.get('errors', {})">
10
11        <div class="documentEditable">
12            <ul class="contentViews">
13                <li class="">
14                    <a href=""
15                       tal:attributes="href string: prefs_gsm_overview">
16                       Overview</a>
17                </li>
18                <li class="">
19                    <a href=""
20                       tal:attributes="href string:prefs_gsm_verification">
21                       Verification</a>
22                </li>
23                <li class="selected">
24                <a href=""
25                   tal:attributes="href string:${template/id}">
26                   Settings</a>
27                </li>
28                <li class="">
29                <a href=""
30                   tal:attributes="href string: prefs_gsm_pinging">
31                   Pinging</a>
32                </li>
33            </ul>
34            <div class="contentActions">
35            &nbsp;
36            </div>
37            <div class="documentContent">
38                <h1 i18n:translate="heading_plonegooglesitemaps">Plone Google Sitemaps</h1>
39                <a href=""
40                   class="link-parent"
41                   tal:attributes="href string: $portal_url/plone_control_panel"
42                   i18n:translate="label_up_to_plone_setup">
43                   Up to Plone Setup
44                </a>
45                <form name="edit_form"
46                    action="."
47                    method="post"
48                    enctype="multipart/form-data"
49                    tal:attributes="action string:${here_url}/${template/getId}" >
50
51                <fieldset tal:define="props portal/portal_properties/googlesitemap_properties;
52                                      portal_types portal/portal_types;">
53                    <legend i18n:translate="legend_plonesitemap_configuration_details">
54                        Google SiteMap configuration
55                    </legend>
56                    <div class="field"
57                        tal:define="portalTypes props/portalTypes;">
58                        <label for="portalTypes ">
59                            Define the types
60                        </label>
61                        <div class="formHelp">
62                            Define the types to be included in sitemap.
63                        </div>
64
65                        <select multiple="multiple"
66                                name="portalTypes"
67                                id="portalTypes"
68                                tal:attributes="tabindex tabindex/next;">
69
70                        <tal:contenttypes repeat="type python:portal_types.listContentTypes()">
71                            <option tal:define="type python:portal_types.getTypeInfo(type);
72                                                type_name type/Title;
73                                                portal_type type/getId"
74                                    tal:attributes="value portal_type;
75                                                    selected python: test(portal_type in portalTypes, 'selected', None)"
76                                    tal:content="type_name">
77                                Article
78                            </option>
79                        </tal:contenttypes>
80                        </select>
81                    </div>
82
83                    <div class="field"
84                        tal:define="states props/states;">
85                        <label for="states ">
86                            Review status
87                        </label>
88
89                        <div class="formHelp">
90                            You may include items in sitemap depend of their review state.
91                        </div>
92
93                        <textarea name="states:lines"
94                                id="states"
95                                cols="20"
96                                rows="8"
97                                tabindex=""
98                                tal:attributes="tabindex tabindex/next;"
99                                tal:define="content python:modules['string'].join(states,'\n');"
100                                tal:content="content">
101                        </textarea>
102                    </div>
103                    <div class="field"
104                        tal:define="blackout_list props/blackout_list;">
105                        <label for="blackout_list ">
106                            Blackout entries
107                        </label>
108                        <div class="formHelp">
109                            The objects with the given ids will not be included in sitemap.
110                        </div>
111                        <textarea name="blackout_list:lines"
112                                id="reg_exp"
113                                cols="20"
114                                rows="8"
115                                tabindex=""
116                                tal:attributes="tabindex tabindex/next;"
117                                tal:define="content python:modules['string'].join(blackout_list ,'\n');"
118                                tal:content="content">
119                        </textarea>
120                    </div>
121                    <div class="field"
122                        tal:define="reg_exp props/reg_exp;">
123                        <label for="reg_exp">
124                            URL processing Regular Expressions
125                        </label>
126                        <div class="formHelp">
127                            Provide regular expressions (in Perl syntax), one per line to be applied to URLs before including them into Sitemap. For instance, "s/\/index_html//" will remove /index_html from URLs representing default documents.
128                        </div>
129
130                        <textarea name="reg_exp:lines"
131                                id="reg_exp"
132                                cols="20"
133                                rows="8"
134                                tabindex=""
135                                tal:attributes="tabindex tabindex/next;"
136                                tal:define="content python:modules['string'].join(reg_exp ,'\n');"
137                                tal:content="content">
138                        </textarea>
139                    </div>
140                    <div class="field"
141                        tal:define="urls props/urls;">
142                        <label for="urls"> Additional URLs
143                        </label>
144                        <div class="formHelp">
145                            Define additional URLs that are not objects and that should be included in sitemap.
146                        </div>
147                        <textarea name="urls:lines"
148                                id="urls"
149                                cols="20"
150                                rows="8"
151                                tabindex=""
152                                tal:attributes="tabindex tabindex/next;"
153                                tal:define="content python:modules['string'].join(urls ,'\n');"
154                                tal:content="content">
155                        </textarea>
156                    </div>
157
158                    <div class="formControls"
159                        tal:define="process_creation request/process_creation|nothing;"
160                        i18n:domain="plone">
161                        <input class="context"
162                            tabindex=""
163                            type="submit"
164                            name="form.button.Save"
165                            value="Save"
166                            i18n:attributes="value"
167                            tal:attributes="tabindex tabindex/next;" />
168                    </div>
169                    </fieldset>
170                    <input type="hidden" name="form.submitted" value="1" />
171                </form>
172            </div>
173        </div>
174    </div>
175</body>
176</html>
Note: See TracBrowser for help on using the repository browser.