[1] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | lang="en" |
---|
| 3 | metal:use-macro="here/main_template/macros/master" |
---|
| 4 | i18n:domain="qseoptimizer"> |
---|
| 5 | |
---|
| 6 | <metal:border fill-slot="top_slot"> |
---|
| 7 | <tal:border define="dummy python:request.set('enable_border',1)" /> |
---|
| 8 | </metal:border> |
---|
| 9 | <metal:style_head fill-slot="style_slot"> |
---|
| 10 | <style type="text/css"> |
---|
| 11 | tr.datagridwidget-empty-row { |
---|
| 12 | display:none; |
---|
| 13 | } |
---|
| 14 | </style> |
---|
| 15 | </metal:style_head> |
---|
| 16 | <metal:javascript_head fill-slot="javascript_head_slot"> |
---|
| 17 | <script type="text/javascript" |
---|
| 18 | tal:condition="python:exists('portal/statistics.js')" |
---|
| 19 | tal:attributes="src string:${here/absolute_url}/statistics.js"> |
---|
| 20 | </script> |
---|
| 21 | <script type="text/javascript" |
---|
| 22 | tal:condition="python:exists('portal/checkkeywords.js')" |
---|
| 23 | tal:attributes="src string:${here/absolute_url}/checkkeywords.js"> |
---|
| 24 | </script> |
---|
| 25 | <script type="text/javascript" |
---|
| 26 | tal:condition="python:exists('portal/custommetatags.js')" |
---|
| 27 | tal:attributes="src string:${here/absolute_url}/custommetatags.js"> |
---|
| 28 | </script> |
---|
| 29 | </metal:javascript_head> |
---|
| 30 | <body> |
---|
| 31 | |
---|
| 32 | <div metal:fill-slot="main" |
---|
| 33 | tal:define="errors options/state/getErrors;"> |
---|
| 34 | |
---|
| 35 | <h1 i18n:translate="heading_edit_seo_properties">Edit SEO Properties</h1> |
---|
| 36 | |
---|
| 37 | <p i18n:translate="description_edit_seo_properties"> |
---|
| 38 | This form allows you to edit html header meta tags that ape produced by |
---|
| 39 | Plone CMS to incrase Search Engine visibility. The values generated by |
---|
| 40 | Plone are present as default values in input fields. To override default |
---|
| 41 | value, check corresponding checkbox and input value itself in |
---|
| 42 | corresponding field. |
---|
| 43 | </p> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | <form name="edit_form" |
---|
| 47 | action="" |
---|
| 48 | method="post" |
---|
| 49 | tal:attributes="action string:${here/getId}/${template/getId}"> |
---|
| 50 | |
---|
| 51 | <fieldset> |
---|
| 52 | |
---|
| 53 | <legend i18n:domain="plone" i18n:translate="legend_item_properties"> |
---|
| 54 | Item Properties |
---|
| 55 | </legend> |
---|
| 56 | |
---|
| 57 | <div class="field"> |
---|
| 58 | <label i18n:translate="label_page_title_tag" for="title"> |
---|
| 59 | Page Title Tag |
---|
| 60 | </label> |
---|
| 61 | |
---|
| 62 | <div class="formHelp" i18n:translate="help_seo_title"> |
---|
| 63 | Text to be present into <TITLE> tag. It is displayed in |
---|
| 64 | browser title bar. Search engines display it as a title of the |
---|
| 65 | document. |
---|
| 66 | </div> |
---|
| 67 | |
---|
| 68 | <input type="checkbox" |
---|
| 69 | id="title_override" |
---|
| 70 | name="title_override" |
---|
| 71 | tabindex="" |
---|
| 72 | tal:attributes="checked python:test(here.hasProperty('qSEO_title'), 'on', None); |
---|
| 73 | tabindex tabindex/next;" |
---|
| 74 | /> |
---|
| 75 | |
---|
| 76 | <label i18n:translate="label_override" for="title_override"> |
---|
| 77 | Override |
---|
| 78 | </label> |
---|
| 79 | |
---|
| 80 | <input type="text" |
---|
| 81 | id="seo_title" |
---|
| 82 | name="title" |
---|
| 83 | size="40" |
---|
| 84 | value="" |
---|
| 85 | tabindex="" |
---|
| 86 | tal:attributes="value request/title | here/qSEO_Title; |
---|
| 87 | tabindex tabindex/next;" |
---|
| 88 | /> |
---|
| 89 | </div> |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | <div class="field"> |
---|
| 93 | <label i18n:translate="label_meta_description_tag" for="description"> |
---|
| 94 | Meta Description Tag |
---|
| 95 | </label> |
---|
| 96 | |
---|
| 97 | <div class="formHelp" i18n:translate="help_seo_description"> |
---|
| 98 | Description of the document to be displayed right below title |
---|
| 99 | in search engine results. It is indexed and considered to be |
---|
| 100 | more important then the page content by several SE. |
---|
| 101 | </div> |
---|
| 102 | |
---|
| 103 | <input type="checkbox" |
---|
| 104 | id="description_override" |
---|
| 105 | name="description_override" |
---|
| 106 | tabindex="" |
---|
| 107 | tal:attributes="checked python:test(here.hasProperty('qSEO_description'), 'on', None); |
---|
| 108 | tabindex tabindex/next;" |
---|
| 109 | /> |
---|
| 110 | |
---|
| 111 | <label i18n:translate="label_override" for="description_override"> |
---|
| 112 | Override |
---|
| 113 | </label> |
---|
| 114 | |
---|
| 115 | <textarea |
---|
| 116 | type="text" |
---|
| 117 | id="seo_description" |
---|
| 118 | name="description" |
---|
| 119 | rows="5" |
---|
| 120 | cols="15" |
---|
| 121 | tabindex="" |
---|
| 122 | tal:attributes="tabindex tabindex/next;" |
---|
| 123 | tal:content="request/description | here/qSEO_Description" |
---|
| 124 | ></textarea> |
---|
| 125 | |
---|
| 126 | </div> |
---|
| 127 | |
---|
| 128 | <div class="field"> |
---|
| 129 | <label i18n:translate="label_meta_keywords_tag" for="keywords"> |
---|
| 130 | Meta Keywords Tag |
---|
| 131 | </label> |
---|
| 132 | |
---|
| 133 | <div class="formHelp" i18n:translate="help_seo_keywords"> |
---|
| 134 | Keywords of the page to be indexed with. |
---|
| 135 | <strong>Enter each keyword in separate line, please.</strong> |
---|
| 136 | Though the relevance of listing meta keywords is of |
---|
| 137 | questionable value now it is useful to document what |
---|
| 138 | meta keywords you are focusing on for this page - for |
---|
| 139 | furture reference. |
---|
| 140 | </div> |
---|
| 141 | |
---|
| 142 | <input type="checkbox" |
---|
| 143 | id="keywords_override" |
---|
| 144 | name="keywords_override" |
---|
| 145 | tabindex="" |
---|
| 146 | tal:attributes="checked python:test(here.hasProperty('qSEO_keywords'), 'on', None); |
---|
| 147 | tabindex tabindex/next;" |
---|
| 148 | /> |
---|
| 149 | |
---|
| 150 | <label i18n:translate="label_override" for="keywords_override"> |
---|
| 151 | Override |
---|
| 152 | </label> |
---|
| 153 | |
---|
| 154 | <textarea |
---|
| 155 | id="seo_keywords" |
---|
| 156 | name="keywords:lines" |
---|
| 157 | rows="11" |
---|
| 158 | cols="15" |
---|
| 159 | wrap="off" |
---|
| 160 | tabindex="" |
---|
| 161 | tal:attributes="tabindex tabindex/next;" |
---|
| 162 | tal:define="keywords request/keywords | here/qSEO_Keywords" |
---|
| 163 | tal:content="python:'\n'.join(keywords)" |
---|
| 164 | ></textarea> |
---|
| 165 | </div> |
---|
| 166 | |
---|
| 167 | <div class="field"> |
---|
| 168 | <label i18n:translate="label_html_comment" for="html_commment"> |
---|
| 169 | HTML Comment |
---|
| 170 | </label> |
---|
| 171 | |
---|
| 172 | <div class="formHelp" i18n:translate="help_seo_html_comment"> |
---|
| 173 | Comments embedded into HTML header. |
---|
| 174 | </div> |
---|
| 175 | |
---|
| 176 | <input type="checkbox" |
---|
| 177 | id="html_comment_override" |
---|
| 178 | name="html_comment_override" |
---|
| 179 | tabindex="" |
---|
| 180 | tal:attributes="checked python:test(here.hasProperty('qSEO_html_comment'), 'on', None); |
---|
| 181 | tabindex tabindex/next;" |
---|
| 182 | /> |
---|
| 183 | |
---|
| 184 | <label i18n:translate="label_override" for="html_comment_override"> |
---|
| 185 | Override |
---|
| 186 | </label> |
---|
| 187 | |
---|
| 188 | <textarea |
---|
| 189 | id="seo_html_comment" |
---|
| 190 | name="html_comment" |
---|
| 191 | rows="5" |
---|
| 192 | cols="15" |
---|
| 193 | tabindex="" |
---|
| 194 | tal:attributes="tabindex tabindex/next;" |
---|
| 195 | tal:content="request/html_comment | here/qSEO_HTML_Comment" |
---|
| 196 | ></textarea> |
---|
| 197 | </div> |
---|
| 198 | |
---|
| 199 | <div class="field"> |
---|
| 200 | <label i18n:translate="label_robot_tag" for="robots"> |
---|
| 201 | Robot Tag |
---|
| 202 | </label> |
---|
| 203 | |
---|
| 204 | <div class="formHelp" i18n:translate="help_seo_robots"> |
---|
| 205 | Robots meta tag value. Allows or denies indefing, following |
---|
| 206 | links, etc. for spiders indexing your content. |
---|
| 207 | </div> |
---|
| 208 | |
---|
| 209 | <input type="checkbox" |
---|
| 210 | id="robots_override" |
---|
| 211 | name="robots_override" |
---|
| 212 | tabindex="" |
---|
| 213 | tal:attributes="checked python:test(here.hasProperty('qSEO_robots'), 'on', None); |
---|
| 214 | tabindex tabindex/next;" |
---|
| 215 | /> |
---|
| 216 | |
---|
| 217 | <label i18n:translate="label_override" for="robots_override"> |
---|
| 218 | Override |
---|
| 219 | </label> |
---|
| 220 | |
---|
| 221 | <input type="text" |
---|
| 222 | id="seo_robots" |
---|
| 223 | name="robots" |
---|
| 224 | size="25" |
---|
| 225 | value="" |
---|
| 226 | tabindex="" |
---|
| 227 | tal:attributes="value request/robots | here/qSEO_Robots; |
---|
| 228 | tabindex tabindex/next;" |
---|
| 229 | /> |
---|
| 230 | </div> |
---|
| 231 | |
---|
| 232 | <div class="field"> |
---|
| 233 | <label i18n:translate="label_distribution_tag" for="distribution"> |
---|
| 234 | Distribution Tag |
---|
| 235 | </label> |
---|
| 236 | |
---|
| 237 | <div class="formHelp" i18n:translate="help_seo_distribution"> |
---|
| 238 | Distribution meta tag to designate time and area disribution |
---|
| 239 | of the document. |
---|
| 240 | </div> |
---|
| 241 | |
---|
| 242 | <input type="checkbox" |
---|
| 243 | id="distribution_override" |
---|
| 244 | name="distribution_override" |
---|
| 245 | tabindex="" |
---|
| 246 | tal:attributes="checked python:test(here.hasProperty('qSEO_distribution'), 'on', None); |
---|
| 247 | tabindex tabindex/next;" |
---|
| 248 | /> |
---|
| 249 | |
---|
| 250 | <label i18n:translate="label_override" for="distribution_override"> |
---|
| 251 | Override |
---|
| 252 | </label> |
---|
| 253 | |
---|
| 254 | <input type="text" |
---|
| 255 | id="seo_distribution" |
---|
| 256 | name="distribution" |
---|
| 257 | size="25" |
---|
| 258 | value="" |
---|
| 259 | tabindex="" |
---|
| 260 | tal:attributes="value request/distribution | here/qSEO_Distribution; |
---|
| 261 | tabindex tabindex/next;" |
---|
| 262 | /> |
---|
| 263 | </div> |
---|
| 264 | |
---|
| 265 | <div class="field" |
---|
| 266 | tal:define="fieldName string:custommetatags;"> |
---|
| 267 | <label i18n:translate="label_custom_metatags" for="custom_metatags"> |
---|
| 268 | Custom Meta Tags |
---|
| 269 | </label> |
---|
| 270 | |
---|
| 271 | <div class="formHelp" i18n:translate="help_seo_custommetatags"> |
---|
| 272 | Here you can manage your custom meta tags. |
---|
| 273 | </div> |
---|
| 274 | |
---|
| 275 | <table class="custom-metatags-table" |
---|
| 276 | id="datagridwidget-table-custommetatags" |
---|
| 277 | style="width: 100%" |
---|
| 278 | tal:define="columnNames python:['meta name', 'meta content']; |
---|
| 279 | columnIds python:['meta_name', 'meta_content']; |
---|
| 280 | fielddata context/qSEO_CustomMetaTags|python:[];"> |
---|
| 281 | <thead> |
---|
| 282 | <tr> |
---|
| 283 | <th class="discreet" style="text-align: left" |
---|
| 284 | tal:repeat="columnName columnNames" |
---|
| 285 | tal:content="columnName" |
---|
| 286 | i18n:translate="">Column name</th> |
---|
| 287 | <th /> |
---|
| 288 | <th /> |
---|
| 289 | </tr> |
---|
| 290 | </thead> |
---|
| 291 | <tbody id="datagridwidget-tbody-custommetatags"> |
---|
| 292 | <tal:row-loop tal:repeat="row fielddata"> |
---|
| 293 | <tr id="datagridwidget-row"> |
---|
| 294 | <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}"> |
---|
| 295 | <td class="datagridwidget-cell" |
---|
| 296 | tal:repeat="column columnIds"> |
---|
| 297 | <tal:cell tal:define="cell_value python:row.get(column);"> |
---|
| 298 | <input type="text" |
---|
| 299 | id="columnId_fieldId" |
---|
| 300 | value="" |
---|
| 301 | name="fieldId.columnId:records" |
---|
| 302 | style="width: 100%;" |
---|
| 303 | tal:attributes="name string:${fieldName}.${column}:records; |
---|
| 304 | id string:${column}_${fieldId}; |
---|
| 305 | value cell_value"/> |
---|
| 306 | </tal:cell> |
---|
| 307 | </td> |
---|
| 308 | <td class="datagridwidget-manipulator"> |
---|
| 309 | <img alt="Delete row" |
---|
| 310 | onclick="customMetaTagsFunctions.removeFieldRow(this);return false" |
---|
| 311 | tal:attributes="src string:${portal_url}/delete_icon.gif;" /> |
---|
| 312 | </td> |
---|
| 313 | <td class="datagridwidget-hidden-data"> |
---|
| 314 | <input type="hidden" |
---|
| 315 | tal:attributes="name string:${fieldName}.orderindex_:records; |
---|
| 316 | id string:orderindex__${fieldId}; |
---|
| 317 | value repeat/row/number;" /> |
---|
| 318 | </td> |
---|
| 319 | </tal:vars> |
---|
| 320 | </tr> |
---|
| 321 | </tal:row-loop> |
---|
| 322 | <tr id="datagridwidget-empty-row" |
---|
| 323 | class="datagridwidget-empty-row" |
---|
| 324 | tal:define="fieldId string:${fieldName}_new"> |
---|
| 325 | <td class="datagridwidget-cell" |
---|
| 326 | tal:repeat="column columnIds"> |
---|
| 327 | <span> |
---|
| 328 | <input type="text" |
---|
| 329 | id="columnId_fieldName_new" |
---|
| 330 | value="" |
---|
| 331 | name="fieldName.columnId:records" |
---|
| 332 | style="width: 100%;" |
---|
| 333 | tal:attributes="id string:${column}_${fieldName}_new; |
---|
| 334 | name string:${fieldName}.${column}:records;" /> |
---|
| 335 | </span> |
---|
| 336 | </td> |
---|
| 337 | <td class="datagridwidget-manipulator"> |
---|
| 338 | <img alt="Delete row" |
---|
| 339 | onclick="customMetaTagsFunctions.removeFieldRow(this);return false" |
---|
| 340 | tal:attributes="src string:${portal_url}/delete_icon.gif;" /> |
---|
| 341 | </td> |
---|
| 342 | <td class="datagridwidget-hidden-data"> |
---|
| 343 | <input type="hidden" |
---|
| 344 | value="template_row_marker" |
---|
| 345 | tal:attributes="name string:${fieldName}.orderindex_:records; |
---|
| 346 | id string:orderindex__${fieldId};" /> |
---|
| 347 | </td> |
---|
| 348 | </tr> |
---|
| 349 | </tbody> |
---|
| 350 | </table> |
---|
| 351 | |
---|
| 352 | <input type="button" |
---|
| 353 | class="datagridwidget-add-button" |
---|
| 354 | id="datagridwidget-add-button" |
---|
| 355 | value="Add new row" |
---|
| 356 | tal:attributes="onclick string:customMetaTagsFunctions.addRow('${fieldName}')" /> |
---|
| 357 | |
---|
| 358 | </div> |
---|
| 359 | |
---|
| 360 | <div class="formControls" |
---|
| 361 | tal:define="process_creation request/process_creation|nothing;" |
---|
| 362 | i18n:domain="plone"> |
---|
| 363 | <input class="context" |
---|
| 364 | tabindex="" |
---|
| 365 | type="submit" |
---|
| 366 | name="form.button.Save" |
---|
| 367 | value="Save" |
---|
| 368 | i18n:attributes="value" |
---|
| 369 | tal:attributes="tabindex tabindex/next;" /> |
---|
| 370 | |
---|
| 371 | <input class="standalone" |
---|
| 372 | tabindex="" |
---|
| 373 | type="submit" |
---|
| 374 | name="form.button.Cancel" |
---|
| 375 | value="Cancel" |
---|
| 376 | i18n:attributes="value" |
---|
| 377 | tal:attributes="tabindex tabindex/next;" /> |
---|
| 378 | </div> |
---|
| 379 | </fieldset> |
---|
| 380 | |
---|
| 381 | <input type="hidden" name="form.submitted" value="1" /> |
---|
| 382 | |
---|
| 383 | </form> |
---|
| 384 | |
---|
| 385 | <div metal:use-macro="here/document_byline/macros/byline"> |
---|
| 386 | Get the byline - contains details about author and modification date. |
---|
| 387 | </div> |
---|
| 388 | |
---|
| 389 | </div> |
---|
| 390 | |
---|
| 391 | </body> |
---|
| 392 | </html> |
---|
| 393 | |
---|