source: products/quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/templates/seo_controlpanel.pt @ 1555

Last change on this file since 1555 was 1555, checked in by olha, 14 years ago

text for SEO configuration template corrected again.

  • Property svn:eol-style set to native
File size: 6.6 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      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
7      i18n:domain="quintagroup.seoptimizer">
8  <body>
9    <div metal:fill-slot="prefs_configlet_main"
10        tal:define="errors python:request.get('errors', {})"><!--TODO:implement validation and errors handling-->
11      <h1>Search Engine Optimizer configuration</h1>
12        <a href="" class="link-parent"
13           tal:attributes="href string: $portal_url/plone_control_panel"
14           i18n:translate="label_up_to_plone_setup">
15           Up to Plone Setup
16        </a>
17        <div class="documentDescription">
18           You can select what content types are
19           qSEOptimizer-enabled, and control if Dublin Core metatags
20           are exposed in the header of content pages.
21        </div>
22        <form name="edit_form" action="." method="post" enctype="multipart/form-data"
23              tal:attributes="action string:${context/absolute_url}/@@seo-controlpanel" >
24          <div class="field">
25            <input type="checkbox"
26                   id="exposeDCMetaTags"
27                   name="exposeDCMetaTags"
28                   tal:attributes="checked view/getExposeDCMetaTags"/>
29                        <label for="exposeDCMetaTags">Expose <abbr title="Dublin Core">DC</abbr> meta tags</label>
30                        <div class="formHelp" i18n:translate="description_seo_dc_metatags">
31                           Controls if <abbr title="Dublin Core">DC</abbr> metatags are exposed to page
32                           header. They include DC.description, DC.type,
33                           DC.format, DC.creator and others.
34                        </div>
35                    </div>
36
37                    <div class="field">
38                        <label for="default_custom_metatags" i18n:translate="label_default_custom_metatags">
39                            Default custom metatags.
40                        </label>
41                        <div class="formHelp" i18n:translate="help_default_custom_metatags">
42                            Fill in custom metatag names (one per line) which will appear on qseo_properties edit tab.
43                            Example: "metaname|metacontent" or "metaname".
44                        </div>
45                        <div class="widget">
46                            <textarea cols="60" id="default_custom_metatags" name="default_custom_metatags" rows="15"
47                                      tal:content="python:'\n'.join(view.getDefaultCustomMetatags())"></textarea>
48                        </div>
49                    </div>
50
51                    <div class="field">
52                        <label for="metatags_order" i18n:translate="label_metatags_order">
53                            Meta tags order in the page.
54                        </label>
55                        <div class="formHelp" i18n:translate="help_metatags_order">
56                            Fill in meta tags (one per line) in the order in which they will appear on site source
57                            pages. Example: "metaname accessor".
58                        </div>
59                        <div class="widget">
60                            <textarea cols="60" id="metatags_order" name="metatags_order" rows="15"
61                                      tal:content="python:'\n'.join(view.getMetaTagsOrder())"></textarea>
62                        </div>
63                    </div>
64
65                    <div class="field">
66                        <label for="additionalKeywords" i18n:translate="label_additional_keywords">
67                            Additional keywords that should be added to the content types.
68                        </label>
69                        <div class="formHelp" i18n:translate="help_additional_keywords">
70                            Use this field when you want that your content types receive
71                            additional keywords from the ones you manually specify. Enter
72                            one keyword per line.
73                        </div>
74                        <div class="widget">
75                            <textarea cols="60" id="additionalKeywords" name="additionalKeywords" rows="15"
76                                      tal:content="python:'\n'.join(view.getAdditionalKeywords())"></textarea>
77                        </div>
78                    </div>
79
80                    <fieldset class="contentTypes"
81                              tal:define="typeLists view/createMultiColumnList">
82                        <legend i18n:translate="label_content_type_title">Content Types</legend>
83
84                        <div class="formHelp" i18n:translate="description_seo_content_types">
85                            Select content types that will have SEO properties
86                            enabled.
87                        </div>
88                        <div style="float:left; margin-right: 2em;" tal:repeat="sublist typeLists">
89                            <ul class="configlets">
90                                <li tal:repeat="ptypeInfo sublist">
91                                    <tal:type define="type python:view.typeInfo(ptypeInfo);
92                                                      name type/getId;">
93
94                                        <input  type="checkbox"
95                                                name="contentTypes:list"
96                                                tal:attributes="id name;
97                                                                value name;
98                                                                checked python:view.isEnableCT(name)"/>
99                                        <label tal:attributes="for python:type.getId()"
100                                               tal:content="type/Title"/>
101                                    </tal:type>
102                                </li>
103                            </ul>
104                        </div>
105                    </fieldset>
106
107                    <div class="formControls"
108                         i18n:domain="plone">
109                         <input class="context"
110                             tabindex=""
111                             type="submit"
112                             name="form.button.Save"
113                             value="Save"
114                             i18n:attributes="value"
115                             tal:attributes="tabindex tabindex/next;" />
116                    </div>
117                    <input type="hidden" name="form.submitted" value="1" />
118                </form>
119    </div>
120 </body>
121</html>
Note: See TracBrowser for help on using the repository browser.