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', {}); |
---|
11 | Iterator python:modules['Products.CMFPlone'].IndexIterator; |
---|
12 | tabindex python:Iterator(mainSlot=False)"><!--TODO:implement validation and errors handling--> |
---|
13 | |
---|
14 | <h1>Search Engine Optimizer configuration</h1> |
---|
15 | <a href="" class="link-parent" |
---|
16 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
17 | i18n:translate="label_up_to_plone_setup"> |
---|
18 | Up to Plone Setup |
---|
19 | </a> |
---|
20 | <div class="documentDescription" i18n:translate="seo_configlet_description"> |
---|
21 | You can select what content types are |
---|
22 | qSEOptimizer-enabled, and control if Dublin Core metatags |
---|
23 | are exposed in the header of content pages. |
---|
24 | </div> |
---|
25 | <form name="edit_form" action="." method="post" enctype="multipart/form-data" |
---|
26 | tal:attributes="action string:${context/absolute_url}/@@seo-controlpanel" > |
---|
27 | <div class="field"> |
---|
28 | <input type="checkbox" |
---|
29 | id="exposeDCMetaTags" |
---|
30 | name="exposeDCMetaTags" |
---|
31 | tal:attributes="checked view/getExposeDCMetaTags"/> |
---|
32 | <label for="exposeDCMetaTags" i18n:translate="label_exposeDCMetaTags"> |
---|
33 | Expose <abbr title="Dublin Core">DC</abbr> meta tags |
---|
34 | </label> |
---|
35 | <div class="formHelp" i18n:translate="description_seo_dc_metatags"> |
---|
36 | Controls if <abbr title="Dublin Core">DC</abbr> metatags are exposed to page |
---|
37 | header. They include DC.description, DC.type, |
---|
38 | DC.format, DC.creator and others. |
---|
39 | </div> |
---|
40 | </div> |
---|
41 | |
---|
42 | <div class="field"> |
---|
43 | <label for="default_custom_metatags" i18n:translate="label_default_custom_metatags"> |
---|
44 | Default custom metatags. |
---|
45 | </label> |
---|
46 | <div class="formHelp" i18n:translate="help_default_custom_metatags"> |
---|
47 | Fill in custom metatag names (one per line) which will appear on qseo_properties edit tab. |
---|
48 | Example: "metaname|metacontent" or "metaname". |
---|
49 | </div> |
---|
50 | <div class="widget"> |
---|
51 | <textarea cols="60" id="default_custom_metatags" name="default_custom_metatags" rows="15" |
---|
52 | tal:content="python:'\n'.join(view.getDefaultCustomMetatags())"></textarea> |
---|
53 | </div> |
---|
54 | </div> |
---|
55 | |
---|
56 | <div class="field"> |
---|
57 | <label for="metatags_order" i18n:translate="label_metatags_order"> |
---|
58 | Meta tags order in the page. |
---|
59 | </label> |
---|
60 | <div class="formHelp" i18n:translate="help_metatags_order"> |
---|
61 | Fill in meta tags (one per line) in the order in which they will appear on site source |
---|
62 | pages. Example: "metaname accessor". |
---|
63 | </div> |
---|
64 | <div class="widget"> |
---|
65 | <textarea cols="60" id="metatags_order" name="metatags_order" rows="15" |
---|
66 | tal:content="python:'\n'.join(view.getMetaTagsOrder())"></textarea> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | |
---|
70 | <div class="field"> |
---|
71 | <label for="additionalKeywords" i18n:translate="label_additional_keywords"> |
---|
72 | Additional keywords that should be added to the content types. |
---|
73 | </label> |
---|
74 | <div class="formHelp" i18n:translate="help_additional_keywords"> |
---|
75 | Use this field when you want that your content types receive |
---|
76 | additional keywords from the ones you manually specify. Enter |
---|
77 | one keyword per line. |
---|
78 | </div> |
---|
79 | <div class="widget"> |
---|
80 | <textarea cols="60" id="additionalKeywords" name="additionalKeywords" rows="15" |
---|
81 | tal:content="python:'\n'.join(view.getAdditionalKeywords())"></textarea> |
---|
82 | </div> |
---|
83 | </div> |
---|
84 | |
---|
85 | <div class="field"> |
---|
86 | <label for="settingsUseKeywordsSG" i18n:translate="label_settings_use_keywords_sg"> |
---|
87 | Settings to control Plone categories and global SEO keywords behaviour. |
---|
88 | </label> |
---|
89 | <div class="formHelp" i18n:translate="help_settings_use_keywords_sg"> |
---|
90 | Controls Plone categories (also known as keywords or tags) and global SEO keywords behaviour. |
---|
91 | </div> |
---|
92 | <input type="radio" |
---|
93 | name="settingsUseKeywordsSG" |
---|
94 | tal:attributes="id string:sg1; |
---|
95 | value string:1; |
---|
96 | checked python:view.select_settings_use_keywords_sg()==1"/> |
---|
97 | <label for="" |
---|
98 | tal:attributes="for string:sg1" i18n:translate="label_subject_override_seoglobal"> |
---|
99 | Plone categories override global SEO keywords |
---|
100 | </label> |
---|
101 | <br/> |
---|
102 | <input type="radio" |
---|
103 | name="settingsUseKeywordsSG" |
---|
104 | tal:attributes="id string:sg2; |
---|
105 | value string:2; |
---|
106 | checked python:view.select_settings_use_keywords_sg()==2"/> |
---|
107 | <label for="" |
---|
108 | tal:attributes="for string:sg2" i18n:translate="label_seoglobal_override_subject"> |
---|
109 | Global SEO keywords override Plone categories |
---|
110 | </label> |
---|
111 | <br/> |
---|
112 | <input type="radio" |
---|
113 | name="settingsUseKeywordsSG" |
---|
114 | tal:attributes="id string:sg3; |
---|
115 | value string:3; |
---|
116 | checked python:view.select_settings_use_keywords_sg()==3"/> |
---|
117 | <label for="" |
---|
118 | tal:attributes="for string:sg3" i18n:translate="label_merge_subject_and_seoglobal"> |
---|
119 | Merge Plone categories and global SEO keywords |
---|
120 | </label> |
---|
121 | </div> |
---|
122 | |
---|
123 | <div class="field"> |
---|
124 | <label for="settingsUseKeywordsLG" i18n:translate="label_settings_use_keywords_lg"> |
---|
125 | Settings to control global SEO keywords vs local SEO keywords behaviour. |
---|
126 | </label> |
---|
127 | <div class="formHelp" i18n:translate="help_settings_use_keywords_lg"> |
---|
128 | Controls global and local SEO keywords behaviour. |
---|
129 | </div> |
---|
130 | <input type="radio" |
---|
131 | name="settingsUseKeywordsLG" |
---|
132 | tal:attributes="id string:lg1; |
---|
133 | value string:1; |
---|
134 | checked python:view.select_settings_use_keywords_lg()==1"/> |
---|
135 | <label for="" |
---|
136 | tal:attributes="for string:lg1" i18n:translate="label_seoglobal_override_seolocal"> |
---|
137 | Global SEO keywords override local SEO keywords |
---|
138 | </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" i18n:translate="label_merge_seoglobal_and_seolocal"> |
---|
147 | Merge global and local SEO keywords |
---|
148 | </label> |
---|
149 | </div> |
---|
150 | |
---|
151 | <fieldset class="contentTypes" |
---|
152 | tal:define="typeLists view/createMultiColumnList"> |
---|
153 | <legend i18n:translate="label_content_type_title">Content Types</legend> |
---|
154 | |
---|
155 | <div class="formHelp" i18n:translate="description_seo_content_types"> |
---|
156 | Select content types that will have SEO properties |
---|
157 | enabled. |
---|
158 | </div> |
---|
159 | <div style="float:left; margin-right: 2em;" tal:repeat="sublist typeLists"> |
---|
160 | <ul class="configlets"> |
---|
161 | <li tal:repeat="ptypeInfo sublist"> |
---|
162 | <tal:type define="type python:view.typeInfo(ptypeInfo); |
---|
163 | name type/getId;"> |
---|
164 | |
---|
165 | <input type="checkbox" |
---|
166 | name="contentTypes:list" |
---|
167 | tal:attributes="id name; |
---|
168 | value name; |
---|
169 | checked python:view.hasSEOAction(type)"/> |
---|
170 | <label tal:attributes="for python:type.getId()" |
---|
171 | tal:content="type/Title"/> |
---|
172 | </tal:type> |
---|
173 | </li> |
---|
174 | </ul> |
---|
175 | </div> |
---|
176 | </fieldset> |
---|
177 | |
---|
178 | <div class="formControls" |
---|
179 | i18n:domain="plone"> |
---|
180 | <input class="context" |
---|
181 | tabindex="" |
---|
182 | type="submit" |
---|
183 | name="form.button.Save" |
---|
184 | value="Save" |
---|
185 | i18n:attributes="value" |
---|
186 | tal:attributes="tabindex tabindex/next;" /> |
---|
187 | </div> |
---|
188 | <input type="hidden" name="form.submitted" value="1" /> |
---|
189 | </form> |
---|
190 | </div> |
---|
191 | </body> |
---|
192 | </html> |
---|