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

Last change on this file since 1460 was 1313, checked in by liebster, 15 years ago

Added metatags order feature, which is managed by metatags_order property of of configlet

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