Ignore:
Timestamp:
Sep 8, 2009 5:52:25 PM (15 years ago)
Author:
liebster
Message:

Added additional functionality for metatags using

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/skins/quintagroup.seoptimizer/qseo_properties_edit_form.cpt

    r1183 r1265  
    255255          </div> 
    256256          <div class="field" 
    257                tal:define="fieldName string:custommetatags;"> 
     257               tal:define="fieldName string:custommetatags; 
     258                           nonEmptylocalMetaTags here/@@seo_context/seo_nonEmptylocalMetaTags;"> 
    258259            <label i18n:translate="label_custom_metatags" for="custom_metatags"> 
    259260              Custom Meta Tags 
     
    262263              Here you can manage your custom meta tags. 
    263264            </div> 
     265            <input type="checkbox" 
     266                   id="custommetatags_override" 
     267                   name="custommetatags_override" 
     268                   tabindex="" 
     269                   tal:attributes="checked python:test(nonEmptylocalMetaTags, 'on', None); 
     270                                   tabindex tabindex/next;" 
     271                   /> 
     272            <label i18n:translate="label_override" for="custommetatags_override"> 
     273              Override 
     274            </label><br /> 
    264275            <table class="custom-metatags-table" 
    265276                   id="datagridwidget-table-custommetatags" 
     
    267278                   tal:define="columnNames python:['meta name', 'meta content']; 
    268279                               columnIds   python:['meta_name', 'meta_content']; 
    269                                fielddata here/@@seo_context/seo_customMetaTags;"> 
     280                               globalMT    here/@@seo_context/seo_globalWithoutLocalCustomMetaTags; 
     281                               localMT    here/@@seo_context/seo_localCustomMetaTags;"> 
    270282                <thead> 
    271283                    <tr> 
     
    279291                </thead> 
    280292                <tbody id="datagridwidget-tbody-custommetatags"> 
    281                     <tal:row-loop tal:repeat="row fielddata"> 
     293                    <tal:row-loop tal:repeat="row globalMT"> 
     294                        <tr id="datagridwidget-row"> 
     295                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}"> 
     296                                <td class="datagridwidget-cell" 
     297                                    tal:repeat="column columnIds"> 
     298                                    <tal:cell tal:define="cell_value python:row.get(column);"> 
     299                                        <input type="text" 
     300                                               id="columnId_fieldId" 
     301                                               value="" 
     302                                               name="fieldId.columnId:records" 
     303                                               style="width: 100%;" 
     304                                               tal:attributes="name string:${fieldName}.${column}:records; 
     305                                                               id string:${column}_${fieldId}; 
     306                                                               value cell_value"/> 
     307                                    </tal:cell> 
     308                                </td> 
     309                            </tal:vars> 
     310                        </tr> 
     311                    </tal:row-loop> 
     312                    <tal:row-loop tal:repeat="row localMT"> 
    282313                        <tr id="datagridwidget-row"> 
    283314                            <tal:vars define="fieldId string:${fieldName}_${repeat/row/number}"> 
Note: See TracChangeset for help on using the changeset viewer.