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

Last change on this file since 1645 was 1645, checked in by liebster, 14 years ago

Added opportunities 'Usage of keywords, found on the page, in metatags'

  • Property svn:eol-style set to native
File size: 9.3 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          <div class="field">
81            <input type="checkbox"
82                   id="usageKeywordsInMetatags"
83                   name="usageKeywordsInMetatags"
84                   tal:attributes="checked view/getUsageKeywordsInMetatags"/>
85            <label for="usageKeywordsInMetatags" i18n:translate="label_usage_keywords_in_metatags">
86                Usage of keywords, found on the page, in metatags.
87            </label>
88            <div class="formHelp" i18n:translate="help_usage_keywords_in_metatags">
89                Usage of keywords, found on the page, in metatags.
90              </div>
91          </div>
92
93          <div class="field">
94              <label for="settingsUseKeywordsSG" i18n:translate="label_settings_use_keywords_sg">
95                  Settings the use Subject and global seo keywords.
96              </label>
97              <div class="formHelp" i18n:translate="help_settings_use_keywords_sg">
98                  Settings the use Subject and global seo keywords.
99              </div>
100              <input  type="radio"
101                      name="settingsUseKeywordsSG"
102                      tal:attributes="id string:sg1;
103                                      value string:1;
104                                      checked python:view.select_settings_use_keywords_sg()==1"/>
105              <label for=""
106                     tal:attributes="for string:sg1">Subject overrides global seo keywords</label>
107              <br/>
108              <input  type="radio"
109                      name="settingsUseKeywordsSG"
110                      tal:attributes="id string:sg2;
111                                      value string:2;
112                                      checked python:view.select_settings_use_keywords_sg()==2"/>
113              <label for=""
114                     tal:attributes="for string:sg2">Global seo keywords override Subject</label>
115              <br/>
116              <input  type="radio"
117                      name="settingsUseKeywordsSG"
118                      tal:attributes="id string:sg3;
119                                      value string:3;
120                                      checked python:view.select_settings_use_keywords_sg()==3"/>
121              <label for=""
122                     tal:attributes="for string:sg3">Merge Subject and global seo keywords</label>
123          </div>
124
125          <div class="field">
126              <label for="settingsUseKeywordsLG" i18n:translate="label_settings_use_keywords_lg">
127                  Settings the use local and global seo keywords.
128              </label>
129              <div class="formHelp" i18n:translate="help_settings_use_keywords_lg">
130                  Settings the use local and global seo keywords.
131              </div>
132              <input  type="radio"
133                      name="settingsUseKeywordsLG"
134                      tal:attributes="id string:lg1;
135                                      value string:1;
136                                      checked python:view.select_settings_use_keywords_lg()==1"/>
137              <label for=""
138                     tal:attributes="for string:lg1">Global override local seo keywords</label>
139              <br/>
140              <input  type="radio"
141                      name="settingsUseKeywordsLG"
142                      tal:attributes="id string:lg2;
143                                      value string:2;
144                                      checked python:view.select_settings_use_keywords_lg()==2"/>
145              <label for=""
146                     tal:attributes="for string:lg2">Merge global and local seo keywords</label>
147          </div>
148
149          <fieldset class="contentTypes"
150                    tal:define="typeLists view/createMultiColumnList">
151              <legend i18n:translate="label_content_type_title">Content Types</legend>
152
153              <div class="formHelp" i18n:translate="description_seo_content_types">
154                  Select content types that will have SEO properties
155                  enabled.
156              </div>
157              <div style="float:left; margin-right: 2em;" tal:repeat="sublist typeLists">
158                  <ul class="configlets">
159                      <li tal:repeat="ptypeInfo sublist">
160                          <tal:type define="type python:view.typeInfo(ptypeInfo);
161                                            name type/getId;">
162
163                              <input  type="checkbox"
164                                      name="contentTypes:list"
165                                      tal:attributes="id name;
166                                                      value name;
167                                                      checked python:view.hasSEOAction(type)"/>
168                              <label tal:attributes="for python:type.getId()"
169                                     tal:content="type/Title"/>
170                          </tal:type>
171                      </li>
172                  </ul>
173              </div>
174          </fieldset>
175
176          <div class="formControls"
177               i18n:domain="plone">
178               <input class="context"
179                   tabindex=""
180                   type="submit"
181                   name="form.button.Save"
182                   value="Save"
183                   i18n:attributes="value"
184                   tal:attributes="tabindex tabindex/next;" />
185          </div>
186          <input type="hidden" name="form.submitted" value="1" />
187      </form>
188    </div>
189 </body>
190</html>
Note: See TracBrowser for help on using the repository browser.