Ignore:
Timestamp:
03/04/10 06:54:42 (2 years ago)
Author:
takanori
Message:

modify kml code with infowindow page template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmap_view.pt

    r288 r289  
    5050              Marker title 
    5151            </a> 
    52           <div id="" style="display: none;" 
    53               tal:attributes="id string:infowindow_html_${item_id}"> 
    54             <h2 class="documentFirstHeading"> 
    55               <metal:field use-macro="python:marker.widget('title', mode='view')"> 
    56                 Title 
    57               </metal:field> 
    58             </h2> 
     52            <div id="" style="display: none;" 
     53                tal:attributes="id string:infowindow_html_${item_id}"> 
     54              <h2 class="documentFirstHeading"> 
     55                <metal:field use-macro="python:marker.widget('title', mode='view')"> 
     56                  Title 
     57                </metal:field> 
     58              </h2> 
    5959 
    60             <img src="" style="float: left; margin: 5px;" 
    61                  tal:condition="marker/imageurl" 
    62                  tal:attributes="src marker/imageurl" /> 
     60              <span tal:replace="structure marker/infowindow" /> 
    6361 
    64             <p class="documentDescription"> 
    65               <metal:field use-macro="python:marker.widget('description', mode='view')"> 
    66                 Description 
    67               </metal:field> 
    68             </p> 
    69  
    70             <div tal:condition="marker/address"> 
    71               <metal:field use-macro="python:marker.widget('address', mode='view')"> 
    72                 Address 
    73               </metal:field> 
     62              <div class="documentActions"> 
     63                <ul> 
     64                  <li> 
     65                    <a href="" 
     66                       tal:attributes="href marker/absolute_url" 
     67                       i18n:translate="" i18n:domain="plone"> 
     68                      View 
     69                    </a> 
     70                  </li> 
     71                </ul> 
     72              </div> 
    7473            </div> 
    75  
    76             <div tal:condition="marker/phone"> 
    77               <metal:field use-macro="python:marker.widget('phone', mode='view')"> 
    78                 Phone 
    79               </metal:field> 
    80             </div> 
    81  
    82             <div tal:condition="marker/url"> 
    83               <a href="" 
    84                  tal:attributes="href marker/url" 
    85                  i18n:translate="" i18n:domain="plone"> 
    86                 Link 
    87               </a> 
    88             </div> 
    89  
    90             <br style="clear: both;"/> 
    91  
    92             <div tal:condition="marker/detail" 
    93                  tal:content="structure marker/getDetail"> 
    94               Detail Text 
    95             </div> 
    96  
    97             <div class="documentActions"> 
    98               <ul> 
    99                 <li> 
    100                   <a href="" 
    101                      tal:attributes="href marker/absolute_url" 
    102                      i18n:translate="" i18n:domain="plone"> 
    103                     View 
    104                   </a> 
    105                 </li> 
    106               </ul> 
    107             </div> 
    108           </div> 
    10974          </li> 
    11075        </tal:block> 
Note: See TracChangeset for help on using the changeset viewer.