source: products/qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/qseo_properties_edit_form.cpt @ 1028

Last change on this file since 1028 was 1028, checked in by mylan, 15 years ago

Implemented possibility to add specific ecma-script to header of a seo supported content

File size: 11.1 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="qseoptimizer">
5
6  <metal:border fill-slot="top_slot">
7    <tal:border define="dummy python:request.set('enable_border',1)" />
8  </metal:border>
9  <metal:javascript_head fill-slot="javascript_head_slot">
10      <script type="text/javascript"
11              tal:condition="python:exists('portal/statistics.js')"
12              tal:attributes="src string:$portal_url/statistics.js">
13      </script>
14  </metal:javascript_head>
15  <body>
16
17    <div metal:fill-slot="main"
18         tal:define="errors options/state/getErrors;">
19
20      <h1 i18n:translate="heading_edit_seo_properties">Edit SEO Properties</h1>
21
22      <p i18n:translate="description_edit_seo_properties">
23        This form allows you to edit html header meta tags that ape produced by
24        Plone CMS to incrase Search Engine visibility. The values generated by
25        Plone are present as default values in input fields. To override default
26        value, check corresponding checkbox and input value itself in
27        corresponding field.
28      </p>
29
30
31      <form name="edit_form"
32            action=""
33            method="post"
34            tal:attributes="action string:${here/getId}/${template/getId}">
35
36        <fieldset>
37
38          <legend i18n:domain="plone" i18n:translate="legend_item_properties">
39            Item Properties
40          </legend>
41
42          <div class="field">
43            <label i18n:translate="label_page_title_tag" for="title">
44              Page Title Tag
45            </label>
46
47            <div class="formHelp" i18n:translate="help_seo_title">
48              Text to be present into &lt;TITLE&gt; tag. It is displayed in
49              browser title bar. Search engines display it as a title of the
50              document.
51            </div>
52
53            <input type="checkbox"
54                   id="title_override"
55                   name="title_override"
56                   tabindex=""
57                   tal:attributes="checked python:test(here.hasProperty('qSEO_title'), 'on', None);
58                                   tabindex tabindex/next;"
59                   />
60
61            <label i18n:translate="label_override" for="title_override">
62              Override
63            </label>
64
65            <input type="text"
66                   id="seo_title"
67                   name="title"
68                   size="40"
69                   value=""
70                   tabindex=""
71                   tal:attributes="value request/title | here/qSEO_Title;
72                                   tabindex tabindex/next;"
73                   />
74          </div>
75
76
77          <div class="field">
78            <label i18n:translate="label_meta_description_tag" for="description">
79              Meta Description Tag
80            </label>
81
82            <div class="formHelp" i18n:translate="help_seo_description">
83              Description of the document to be displayed right below title
84              in search engine results. It is indexed and considered to be
85              more important then the page content by several SE.
86            </div>
87
88            <input type="checkbox"
89                   id="description_override"
90                   name="description_override"
91                   tabindex=""
92                   tal:attributes="checked python:test(here.hasProperty('qSEO_description'), 'on', None);
93                                   tabindex tabindex/next;"
94                   />
95
96            <label i18n:translate="label_override" for="description_override">
97              Override
98            </label>
99
100            <textarea
101                      type="text"
102                      id="seo_description"
103                      name="description"
104                      rows="5"
105                      cols="15"
106                      tabindex=""
107                      tal:attributes="tabindex tabindex/next;"
108                      tal:content="request/description | here/qSEO_Description"
109                      ></textarea>
110
111          </div>
112           
113          <div class="field">
114            <label i18n:translate="label_meta_keywords_tag" for="keywords">
115              Meta Keywords Tag
116            </label>
117
118            <div class="formHelp" i18n:translate="help_seo_keywords">
119              Keywords of the page to be indexed with.
120              <strong>Enter each keyword in separate line, please.</strong>
121              Though the relevance of listing meta keywords is of
122              questionable value now it is useful to document what
123              meta keywords you are focusing on for this page - for
124              furture reference.
125            </div>
126
127            <input type="checkbox"
128                   id="keywords_override"
129                   name="keywords_override"
130                   tabindex=""
131                   tal:attributes="checked python:test(here.hasProperty('qSEO_keywords'), 'on', None);
132                                   tabindex tabindex/next;"
133                   />
134
135            <label i18n:translate="label_override" for="keywords_override">
136              Override
137            </label>
138
139            <textarea
140                      id="seo_keywords"
141                      name="keywords:lines"
142                      rows="11"
143                      cols="15"
144                      wrap="off"
145                      tabindex=""
146                      tal:attributes="tabindex tabindex/next;"
147                      tal:define="keywords request/keywords | here/qSEO_Keywords"
148                      tal:content="python:'\n'.join(keywords)"
149                      ></textarea>
150          </div>
151
152          <div class="field">
153            <label i18n:translate="label_html_comment" for="html_commment">
154              HTML Comment
155            </label>
156
157            <div class="formHelp" i18n:translate="help_seo_html_comment">
158              Comments embedded into HTML header.
159            </div>
160
161            <input type="checkbox"
162                   id="html_comment_override"
163                   name="html_comment_override"
164                   tabindex=""
165                   tal:attributes="checked python:test(here.hasProperty('qSEO_html_comment'), 'on', None);
166                                   tabindex tabindex/next;"
167                   />
168
169            <label i18n:translate="label_override" for="html_comment_override">
170              Override
171            </label>
172
173            <textarea
174                      id="seo_html_comment"
175                      name="html_comment"
176                      rows="5"
177                      cols="15"
178                      tabindex=""
179                      tal:attributes="tabindex tabindex/next;"
180                      tal:content="request/html_comment | here/qSEO_HTML_Comment"
181                      ></textarea>
182          </div>
183
184          <div class="field">
185            <label i18n:translate="label_robot_tag" for="robots">
186              Robot Tag
187            </label>
188
189            <div class="formHelp" i18n:translate="help_seo_robots">
190              Robots meta tag value. Allows or denies indefing, following
191              links, etc. for spiders indexing your content.
192            </div>
193
194            <input type="checkbox"
195                   id="robots_override"
196                   name="robots_override"
197                   tabindex=""
198                   tal:attributes="checked python:test(here.hasProperty('qSEO_robots'), 'on', None);
199                                   tabindex tabindex/next;"
200                   />
201
202            <label i18n:translate="label_override" for="robots_override">
203              Override
204            </label>
205
206            <input type="text"
207                   id="seo_robots"
208                   name="robots"
209                   size="25"
210                   value=""
211                   tabindex=""
212                   tal:attributes="value request/robots | here/qSEO_Robots;
213                                   tabindex tabindex/next;"
214                   />
215          </div>
216
217          <div class="field">
218            <label i18n:translate="label_distribution_tag" for="distribution">
219              Distribution Tag
220            </label>
221
222            <div class="formHelp" i18n:translate="help_seo_distribution">
223              Distribution meta tag to designate time and area disribution
224              of the document.
225            </div>
226
227            <input type="checkbox"
228                   id="distribution_override"
229                   name="distribution_override"
230                   tabindex=""
231                   tal:attributes="checked python:test(here.hasProperty('qSEO_distribution'), 'on', None);
232                                   tabindex tabindex/next;"
233                   />
234
235            <label i18n:translate="label_override" for="distribution_override">
236              Override
237            </label>
238
239            <input type="text"
240                   id="seo_distribution"
241                   name="distribution"
242                   size="25"
243                   value=""
244                   tabindex=""
245                   tal:attributes="value request/distribution | here/qSEO_Distribution;
246                                   tabindex tabindex/next;"
247                   />
248          </div>
249
250          <div class="field">
251            <label i18n:translate="label_ecma_script" for="ecma_script">
252              ECMA Script
253            </label>
254
255            <div class="formHelp" i18n:translate="help_seo_ecma_script">
256              ECMA script embedded into HTML header.
257            </div>
258
259            <input type="checkbox"
260                   id="ecma_override"
261                   name="ecma_override"
262                   tabindex=""
263                   tal:attributes="checked python:test(here.hasProperty('qSEO_ecma_script'), 'on', None);
264                                   tabindex tabindex/next;"
265                   />
266
267            <label i18n:translate="label_override" for="ecma_override">
268              Override
269            </label>
270
271            <textarea
272                      id="seo_ecma_script"
273                      name="ecma_script"
274                      rows="5"
275                      cols="15"
276                      tabindex=""
277                      tal:attributes="tabindex tabindex/next;"
278                      tal:content="request/ecma_script | here/qSEO_ECMA_Script"
279                      ></textarea>
280          </div>
281
282          <div class="formControls"
283               tal:define="process_creation request/process_creation|nothing;"
284               i18n:domain="plone">
285            <input class="context"
286                   tabindex=""
287                   type="submit"
288                   name="form.button.Save"
289                   value="Save"
290                   i18n:attributes="value"
291                   tal:attributes="tabindex tabindex/next;" />
292
293            <input class="standalone"
294                   tabindex=""
295                   type="submit"
296                   name="form.button.Cancel"
297                   value="Cancel"
298                   i18n:attributes="value"
299                   tal:attributes="tabindex tabindex/next;" />
300          </div>
301        </fieldset>
302
303        <input type="hidden" name="form.submitted" value="1" />
304
305      </form>
306
307      <div metal:use-macro="here/document_byline/macros/byline">
308        Get the byline - contains details about author and modification date.
309      </div>
310
311    </div>
312
313  </body>
314</html>
315
Note: See TracBrowser for help on using the repository browser.