Changeset 289


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

modify kml code with infowindow page template

Location:
Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmap.kml.pt

    r288 r289  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <kml xmlns="http://earth.google.com/kml/2.0" 
    3      xmlns:tal="http://xml.zope.org/namespaces/tal"> 
     2<kml xmlns="http://earth.google.com/kml/2.2" 
     3     xmlns:tal="http://xml.zope.org/namespaces/tal" 
     4     xmlns:metal="http://xml.zope.org/namespaces/metal"> 
    45<tal:dummy tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'application/vnd.google-earth.kml;; charset=utf-8')" /> 
    56<Document> 
     
    1314    <Placemark tal:define="marker item/getObject"> 
    1415      <name tal:content="item/pretty_title_or_id">Marker title</name> 
    15       <description tal:content="item/Description">Description</description> 
     16      <address tal:content="marker/address">Address</address> 
     17      <phoneNumber tal:content="marker/phone">03-1111-1111</phoneNumber> 
     18      <Snippet tal:content="marker/Description">Snippet</Snippet> 
     19      <description tal:content="structure marker/infowindow"> 
     20      </description> 
    1621      <Point> 
    1722        <coordinates tal:content="string:${marker/point/longitude},${marker/point/latitude}">139.71,35.73</coordinates> 
  • 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.