[392] | 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" |
---|
[1463] | 6 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
[392] | 7 | i18n:domain="quintagroup.seoptimizer"> |
---|
| 8 | <body> |
---|
| 9 | <div metal:fill-slot="prefs_configlet_main" |
---|
[1677] | 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 | |
---|
[392] | 14 | <h1>Search Engine Optimizer configuration</h1> |
---|
[401] | 15 | <a href="" class="link-parent" |
---|
[392] | 16 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
| 17 | i18n:translate="label_up_to_plone_setup"> |
---|
[1669] | 18 | Up to Plone Setup |
---|
[392] | 19 | </a> |
---|
[1669] | 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. |
---|
[392] | 24 | </div> |
---|
[401] | 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"/> |
---|
[1669] | 32 | <label for="exposeDCMetaTags" i18n:translate="label_exposeDCMetaTags"> |
---|
| 33 | Expose <abbr title="Dublin Core">DC</abbr> meta tags |
---|
| 34 | </label> |
---|
[1580] | 35 | <div class="formHelp" i18n:translate="description_seo_dc_metatags"> |
---|
[1669] | 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. |
---|
[1580] | 39 | </div> |
---|
| 40 | </div> |
---|
[392] | 41 | |
---|
[1580] | 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> |
---|
[392] | 55 | |
---|
[1580] | 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> |
---|
[1313] | 69 | |
---|
[1580] | 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> |
---|
[392] | 84 | |
---|
[1645] | 85 | <div class="field"> |
---|
[1580] | 86 | <label for="settingsUseKeywordsSG" i18n:translate="label_settings_use_keywords_sg"> |
---|
[1663] | 87 | Settings to control Plone categories and global SEO keywords behaviour. |
---|
[1580] | 88 | </label> |
---|
| 89 | <div class="formHelp" i18n:translate="help_settings_use_keywords_sg"> |
---|
[1659] | 90 | Controls Plone categories (also known as keywords or tags) and global SEO keywords behaviour. |
---|
[1580] | 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="" |
---|
[1669] | 98 | tal:attributes="for string:sg1" i18n:translate="label_subject_override_seoglobal"> |
---|
| 99 | Plone categories override global SEO keywords |
---|
| 100 | </label> |
---|
[1580] | 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="" |
---|
[1669] | 108 | tal:attributes="for string:sg2" i18n:translate="label_seoglobal_override_subject"> |
---|
| 109 | Global SEO keywords override Plone categories |
---|
| 110 | </label> |
---|
[1580] | 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="" |
---|
[1669] | 118 | tal:attributes="for string:sg3" i18n:translate="label_merge_subject_and_seoglobal"> |
---|
| 119 | Merge Plone categories and global SEO keywords |
---|
| 120 | </label> |
---|
[1580] | 121 | </div> |
---|
[392] | 122 | |
---|
[1580] | 123 | <div class="field"> |
---|
| 124 | <label for="settingsUseKeywordsLG" i18n:translate="label_settings_use_keywords_lg"> |
---|
[1663] | 125 | Settings to control global SEO keywords vs local SEO keywords behaviour. |
---|
[1580] | 126 | </label> |
---|
| 127 | <div class="formHelp" i18n:translate="help_settings_use_keywords_lg"> |
---|
[1663] | 128 | Controls global and local SEO keywords behaviour. |
---|
[1580] | 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="" |
---|
[1669] | 136 | tal:attributes="for string:lg1" i18n:translate="label_seoglobal_override_seolocal"> |
---|
| 137 | Global SEO keywords override local SEO keywords |
---|
| 138 | </label> |
---|
[1580] | 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="" |
---|
[1669] | 146 | tal:attributes="for string:lg2" i18n:translate="label_merge_seoglobal_and_seolocal"> |
---|
| 147 | Merge global and local SEO keywords |
---|
| 148 | </label> |
---|
[1580] | 149 | </div> |
---|
[392] | 150 | |
---|
[1580] | 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> |
---|
[392] | 190 | </div> |
---|
| 191 | </body> |
---|
| 192 | </html> |
---|