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