[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" |
---|
[401] | 10 | tal:define="errors python:request.get('errors', {})"><!--TODO:implement validation and errors handling--> |
---|
[392] | 11 | <h1>Search Engine Optimizer configuration</h1> |
---|
[401] | 12 | <a href="" class="link-parent" |
---|
[392] | 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> |
---|
[401] | 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"/> |
---|
[1580] | 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> |
---|
[392] | 36 | |
---|
[1580] | 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> |
---|
[392] | 50 | |
---|
[1580] | 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> |
---|
[1313] | 64 | |
---|
[1580] | 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> |
---|
[392] | 79 | |
---|
[1645] | 80 | <div class="field"> |
---|
| 81 | <input type="checkbox" |
---|
[1647] | 82 | id="filterKeywordsByContent" |
---|
| 83 | name="filterKeywordsByContent" |
---|
| 84 | tal:attributes="checked view/getFilterKeywordsByContent"/> |
---|
| 85 | <label for="filterKeywordsByContent" i18n:translate="label_filter_keywords_by_content"> |
---|
[1659] | 86 | Filter keywords by their availability in content. |
---|
[1645] | 87 | </label> |
---|
[1647] | 88 | <div class="formHelp" i18n:translate="help_filter_keywords_by_content"> |
---|
[1659] | 89 | Controls use of meta keywords according to their presence in content. |
---|
[1580] | 90 | </div> |
---|
[1645] | 91 | </div> |
---|
[392] | 92 | |
---|
[1580] | 93 | <div class="field"> |
---|
| 94 | <label for="settingsUseKeywordsSG" i18n:translate="label_settings_use_keywords_sg"> |
---|
[1663] | 95 | Settings to control Plone categories and global SEO keywords behaviour. |
---|
[1580] | 96 | </label> |
---|
| 97 | <div class="formHelp" i18n:translate="help_settings_use_keywords_sg"> |
---|
[1659] | 98 | Controls Plone categories (also known as keywords or tags) and global SEO keywords behaviour. |
---|
[1580] | 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="" |
---|
[1659] | 106 | tal:attributes="for string:sg1">Plone categories override global SEO keywords</label> |
---|
[1580] | 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="" |
---|
[1659] | 114 | tal:attributes="for string:sg2">Global SEO keywords override Plone categories</label> |
---|
[1580] | 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="" |
---|
[1659] | 122 | tal:attributes="for string:sg3">Merge Plone categories and global SEO keywords</label> |
---|
[1580] | 123 | </div> |
---|
[392] | 124 | |
---|
[1580] | 125 | <div class="field"> |
---|
| 126 | <label for="settingsUseKeywordsLG" i18n:translate="label_settings_use_keywords_lg"> |
---|
[1663] | 127 | Settings to control global SEO keywords vs local SEO keywords behaviour. |
---|
[1580] | 128 | </label> |
---|
| 129 | <div class="formHelp" i18n:translate="help_settings_use_keywords_lg"> |
---|
[1663] | 130 | Controls global and local SEO keywords behaviour. |
---|
[1580] | 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="" |
---|
[1659] | 138 | tal:attributes="for string:lg1">Global SEO keywords override local SEO keywords</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="" |
---|
[1659] | 146 | tal:attributes="for string:lg2">Merge global and local SEO keywords</label> |
---|
[1580] | 147 | </div> |
---|
[392] | 148 | |
---|
[1580] | 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> |
---|
[392] | 188 | </div> |
---|
| 189 | </body> |
---|
| 190 | </html> |
---|