Changeset 313

Show
Ignore:
Timestamp:
09/21/06 18:49:20 (2 years ago)
Author:
sgillies
Message:

add a map image to the upper right of the content body by defining a custom body_macro

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GeographicEntityLite/trunk/GeographicEntityLite/skins/GeographicEntityLite/geographicentitylite_view.pt

    r306 r313  
    66      <head><title></title></head> 
    77      <body> 
     8 
     9        <metal:body_macro  
     10                  metal:define-macro="body" 
     11                  > 
     12          <div 
     13                    style="float:right;height:300px;width:225px;background-image:url(ba065b1-300.jpg);border:solid grey 1px;" 
     14                        ></div> 
     15          <div 
     16                    tal:define="field_macro field_macro | here/widgets/field/macros/view;" 
     17            tal:repeat="field python:here.Schema().filterFields(isMetadata=0)" 
     18                    > 
     19          <tal:if_visible 
     20                    define="mode string:view; 
     21                visState python:field.widget.isVisible(here, mode); 
     22                visCondition python:field.widget.testCondition(here, portal, template);" 
     23                condition="python:visState == 'visible' and visCondition" 
     24                        > 
     25            <metal:use_field 
     26                          use-macro="field_macro" 
     27                          /> 
     28          </tal:if_visible> 
     29                  </div> 
     30        </metal:body_macro> 
     31                 
    832        <metal:folderlisting_macro metal:define-macro="folderlisting" 
    933                                   tal:define="fl_macro here/folder_listing/macros/listing | nothing;