Changeset 1075 in products for qSEOptimizer/trunk/skins


Ignore:
Timestamp:
Jul 13, 2009 12:21:51 PM (15 years ago)
Author:
chervol
Message:

backported the canonicalurl funtionality

Location:
qSEOptimizer/trunk/skins/qSEOptimizer
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.1.1/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer">SSS 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.1.2/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer">SSS 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.1.3/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.1.4/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.1/header.pt

    r1 r1075  
    4040          tal:attributes="name python:keyval[0]; 
    4141                          content python:keyval[1];" /> 
     42    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4243 
    4344    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer"> 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.1/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.2/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4344 
    4445    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.3-final/header.pt

    r1 r1075  
    4545          tal:attributes="name python:keyval[0]; 
    4646                          content python:keyval[1];" /> 
    47  
     47    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
     48     
    4849    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
    4950              tal:condition="nocall:scripts"> 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.4-2/header.pt

    r516 r1075  
    4545          tal:attributes="name python:keyval[0]; 
    4646                          content python:keyval[1];" /> 
     47    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4748 
    4849    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.4-final/header.pt

    r1 r1075  
    4545          tal:attributes="name python:keyval[0]; 
    4646                          content python:keyval[1];" /> 
     47    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4748 
    4849    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5.5/header.pt

    r1 r1075  
    4646          tal:attributes="name python:keyval[0]; 
    4747                          content python:keyval[1];" /> 
     48    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
    4849 
    4950    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/2.5/header.pt

    r1 r1075  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43    <link rel="canonical" href="" tal:attributes="href here/qSEO_Canonical" /> 
     44                           
    4345 
    4446    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/trunk/skins/qSEOptimizer/qseo_properties_edit.cpy

    r1 r1075  
    77##bind subpath=traverse_subpath 
    88##title=Update SEO Properties 
    9 ##parameters=title=None,description=None,keywords=None,html_comment=None,robots=None,distribution=None,title_override=0,description_override=0,keywords_override=0,html_comment_override=0,robots_override=0,distribution_override=0,custommetatags=[] 
     9##parameters=title=None,description=None,keywords=None,html_comment=None,robots=None,distribution=None,canonical=None,title_override=0,description_override=0,keywords_override=0,html_comment_override=0,robots_override=0,distribution_override=0,custommetatags=[] 
    1010 
    1111def setProperty(context, property, value, type='string'): 
     
    4242setProperty(context, 'qSEO_robots', robots) 
    4343setProperty(context, 'qSEO_distribution', distribution) 
     44setProperty(context, 'qSEO_canonical', canonical) 
    4445 
    4546if not title_override:        delete_list.append('qSEO_title') 
  • qSEOptimizer/trunk/skins/qSEOptimizer/qseo_properties_edit_form.cpt

    r519 r1075  
    262262                   /> 
    263263          </div> 
    264  
     264          <div class="field" 
     265               tal:define="error errors/canonical|nothing;" 
     266               tal:attributes="class python:test(error, 'field error', 'field')"> 
     267            <label i18n:translate="label_canonical_tag" for="canonical"> 
     268              Canonical URL 
     269            </label> 
     270            <div class="formHelp" i18n:translate="help_seo_canonical"> 
     271              Specify your canonical URL. 
     272              If your site has identical or vastly similar content that's accessible through multiple URLs, 
     273              this format provides you with more control over the URL returned in search results. 
     274            </div> 
     275            <input type="checkbox" 
     276                   id="canonical_override" 
     277                   name="canonical_override" 
     278                   tabindex="" 
     279                   tal:attributes="checked python:test(here.hasProperty('qSEO_canonical'), 'on', None); 
     280                                   tabindex tabindex/next;" 
     281                   /> 
     282            <label i18n:translate="label_override" for="canonical_override"> 
     283              Override 
     284            </label><br /> 
     285            <div tal:content="error">Validation error output</div> 
     286            <input type="text" 
     287                   id="seo_canonical" 
     288                   name="canonical" 
     289                   size="55" 
     290                   value="" 
     291                   tabindex="" 
     292                   tal:attributes="value request/canonical | here/qSEO_Canonical; 
     293                                   tabindex tabindex/next;" 
     294                   /> 
     295          </div> 
    265296          <div class="field" 
    266297               tal:define="fieldName string:custommetatags;"> 
Note: See TracChangeset for help on using the changeset viewer.