Changeset 1028 in products


Ignore:
Timestamp:
Apr 14, 2009 11:59:17 AM (15 years ago)
Author:
mylan
Message:

Implemented possibility to add specific ecma-script to header of a seo supported content

Location:
qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer
Files:
1 added
17 edited

Legend:

Unmodified
Added
Removed
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0-final/header.pt

    r1 r1028  
    3333          tal:attributes="name python:keyval[0]; 
    3434                          content python:keyval[1];" /> 
     35 
     36    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     37        <tal:script replace="structure ecmascript" /> 
     38    </tal:ecma_script> 
    3539 
    3640    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0.1/header.pt

    r1 r1028  
    3737          tal:attributes="name python:keyval[0]; 
    3838                          content python:keyval[1];" /> 
     39 
     40    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     41        <tal:script replace="structure ecmascript" /> 
     42    </tal:ecma_script> 
    3943 
    4044    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0.2/header.pt

    r1 r1028  
    3838          tal:attributes="name python:keyval[0]; 
    3939                          content python:keyval[1];" /> 
     40 
     41    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     42        <tal:script replace="structure ecmascript" /> 
     43    </tal:ecma_script> 
    4044 
    4145    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0.3/header.pt

    r1 r1028  
    3939          tal:attributes="name python:keyval[0]; 
    4040                          content python:keyval[1];" /> 
     41 
     42    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     43        <tal:script replace="structure ecmascript" /> 
     44    </tal:ecma_script> 
    4145 
    4246    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0.4/header.pt

    r1 r1028  
    3939          tal:attributes="name python:keyval[0]; 
    4040                          content python:keyval[1];" /> 
     41 
     42    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     43        <tal:script replace="structure ecmascript" /> 
     44    </tal:ecma_script> 
    4145 
    4246    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.0.5/header.pt

    r1 r1028  
    3939          tal:attributes="name python:keyval[0]; 
    4040                          content python:keyval[1];" /> 
     41 
     42    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     43        <tal:script replace="structure ecmascript" /> 
     44    </tal:ecma_script> 
    4145 
    4246    <link rel="Stylesheet" type="text/css" href="" tal:attributes="href string:$portal_url/ploneNS4.css" /> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1.1/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer">SSS 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1.2/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer">SSS 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1.3/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1.4/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.1/header.pt

    r1 r1028  
    4040          tal:attributes="name python:keyval[0]; 
    4141                          content python:keyval[1];" /> 
     42 
     43    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     44        <tal:script replace="structure ecmascript" /> 
     45    </tal:ecma_script> 
    4246 
    4347    <metal:js metal:use-macro="here/renderAllTheScripts/macros/jsrenderer"> 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5.1/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5.2/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5.3-final/header.pt

    r1 r1028  
    4444          tal:attributes="name python:keyval[0]; 
    4545                          content python:keyval[1];" /> 
     46 
     47    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     48        <tal:script replace="structure ecmascript" /> 
     49    </tal:ecma_script> 
    4650 
    4751    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/2.5/header.pt

    r1 r1028  
    4141          tal:attributes="name python:keyval[0]; 
    4242                          content python:keyval[1];" /> 
     43 
     44    <tal:ecma_script define="ecmascript here/qSEO_ECMA_Script|nothing" condition="ecmascript"> 
     45        <tal:script replace="structure ecmascript" /> 
     46    </tal:ecma_script> 
    4347 
    4448    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing" 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/qseo_properties_edit.cpy

    r1 r1028  
    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 
     9##parameters=title=None,description=None,keywords=None,html_comment=None,robots=None,distribution=None,ecma_script=None,title_override=0,description_override=0,keywords_override=0,html_comment_override=0,robots_override=0,distribution_override=0,ecma_override=0 
    1010 
    1111def setProperty(context, property, value, type='string'): 
     
    2121setProperty(context, 'qSEO_robots', robots) 
    2222setProperty(context, 'qSEO_distribution', distribution) 
     23setProperty(context, 'qSEO_ecma_script', ecma_script) 
     24 
    2325 
    2426delete_list = [] 
     
    2931if not robots_override:       delete_list.append('qSEO_robots') 
    3032if not distribution_override: delete_list.append('qSEO_distribution') 
     33if not ecma_override:         delete_list.append('qSEO_ecma_script') 
    3134 
    3235if delete_list: context.manage_delProperties(delete_list) 
  • qSEOptimizer/branches/p21_ecma/skins/qSEOptimizer/qseo_properties_edit_form.cpt

    r1 r1028  
    248248          </div> 
    249249 
     250          <div class="field"> 
     251            <label i18n:translate="label_ecma_script" for="ecma_script"> 
     252              ECMA Script 
     253            </label> 
     254 
     255            <div class="formHelp" i18n:translate="help_seo_ecma_script"> 
     256              ECMA script embedded into HTML header. 
     257            </div> 
     258 
     259            <input type="checkbox" 
     260                   id="ecma_override" 
     261                   name="ecma_override" 
     262                   tabindex="" 
     263                   tal:attributes="checked python:test(here.hasProperty('qSEO_ecma_script'), 'on', None); 
     264                                   tabindex tabindex/next;" 
     265                   /> 
     266 
     267            <label i18n:translate="label_override" for="ecma_override"> 
     268              Override 
     269            </label> 
     270 
     271            <textarea  
     272                      id="seo_ecma_script" 
     273                      name="ecma_script" 
     274                      rows="5" 
     275                      cols="15" 
     276                      tabindex="" 
     277                      tal:attributes="tabindex tabindex/next;" 
     278                      tal:content="request/ecma_script | here/qSEO_ECMA_Script" 
     279                      ></textarea> 
     280          </div> 
     281 
    250282          <div class="formControls" 
    251283               tal:define="process_creation request/process_creation|nothing;" 
Note: See TracChangeset for help on using the changeset viewer.