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