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

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

Modified description for Custom Meta Tags in configlet

  • Property svn:eol-style set to native
File size: 5.7 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="additionalKeywords" i18n:translate="label_additional_keywords">
52                            Additional keywords that should be added to the content types.
53                        </label>
54                        <div class="formHelp" i18n:translate="help_additional_keywords">
55                            Use this field when you want that your content types receive
56                            additional keywords from the ones you manually specify. Enter
57                            one keyword per line.
58                        </div>
59                        <div class="widget">
60                            <textarea cols="60" id="additionalKeywords" name="additionalKeywords" rows="15"
61                                      tal:content="python:'\n'.join(view.getAdditionalKeywords())"></textarea>
62                        </div>
63                    </div>
64
65                    <fieldset class="portalTypes"
66                              tal:define="typeLists view/createMultiColumnList">
67                        <legend i18n:translate="label_content_type_title">Content Types</legend>
68
69                        <div class="formHelp" i18n:translate="description_seo_content_types">
70                            Select content types that will have SEO properties
71                            enabled.
72                        </div>
73                        <div style="float:left; margin-right: 2em;" tal:repeat="sublist typeLists">
74                            <ul class="configlets">
75                                <li tal:repeat="ptypeInfo sublist">
76                                    <tal:type define="type python:view.typeInfo(ptypeInfo);
77                                                      name type/getId;">
78
79                                        <input  type="checkbox"
80                                                name="portalTypes:list"
81                                                tal:attributes="id name;
82                                                                value name;
83                                                                checked python:view.hasSEOAction(type)"/>
84                                        <label tal:attributes="for python:type.getId()"
85                                               tal:content="type/Title"/>
86                                    </tal:type>
87                                </li>
88                            </ul>
89                        </div>
90                    </fieldset>
91
92                    <div class="formControls"
93                         i18n:domain="plone">
94                         <input class="context"
95                             tabindex=""
96                             type="submit"
97                             name="form.button.Save"
98                             value="Save"
99                             i18n:attributes="value"
100                             tal:attributes="tabindex tabindex/next;" />
101                    </div>
102                    <input type="hidden" name="form.submitted" value="1" />
103                </form>
104    </div>
105 </body>
106</html>
Note: See TracBrowser for help on using the repository browser.