source: products/qPloneGoogleMaps/tags/0.1.0/skins/qPloneGoogleMaps/maps_view.pt

Last change on this file was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5<head>
6  <metal:block fill-slot="javascript_head_slot">
7    <script type="text/javascript" src=""
8            tal:attributes="src string:http://maps.google.com/maps?file=api&amp;v=2&amp;key=${here/getMapKey}">
9    </script>
10    <span tal:define="brain python:here.portal_catalog(path='/'.join(here.getPhysicalPath()));
11                      longlat python:test(len(brain)==1 and brain[0].portal_type != 'Map' and brain[0].geoLocation, brain, [])"
12          tal:replace="structure python:here.maps_markers(longlat, node='mapView', events=True, controls='large', typeControls=True, overviewControls=True, zoom=6, loc=longlat[0].geoLocation, auto=None)"
13          tal:on-error="string:" />
14  </metal:block>
15</head>
16
17<body>
18
19<div metal:fill-slot="main">
20<metal:main_macro define-macro="main">
21    <metal:body define-macro="body_macro">
22        <div metal:use-macro="here/document_actions/macros/document_actions">
23             Document actions (print, sendto etc)
24        </div>
25
26        <h1 tal:content="here/title_or_id" class="documentFirstHeading">
27            Title or id
28        </h1>
29
30        <a href=""
31           class="link-parent"
32           tal:define="parent_url python:here.navigationParent(here, template_id)"
33           tal:condition="parent_url"
34           tal:attributes="href parent_url"
35           i18n:translate="go_to_parent_url">
36            Up one level
37        </a>
38
39        <div class="documentDescription" tal:content="structure here/Description">
40            description
41        </div>
42
43        <div id="mapView" style="position: relative; height: 480px;"></div>
44    </metal:body>
45</metal:main_macro>
46
47</div>
48
49</body>
50</html>
Note: See TracBrowser for help on using the repository browser.