Ohne ext Template bekomme ich:
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 105
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 113
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 114
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 105
Warning: array_shift() [function.array-shift]: The argument should be an array in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 113
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/bluebox-productions.com/httpdocs/typo3conf/ext/rggooglemap/pi1/class.tx_rggooglemap_pi1.php on line 114
Dann habe ich ein extension Template erzeugt und das ins Setup kopiert:
plugin.tx_rggooglemap_pi1 {
templateFile = fileadmin/templates/main/gmap.html
pidList = 206
mapWidth = 640
mapHeight = 500
mapLng = 13.537216186523438
mapLat = 47.585673399138294
mapZoom = 7
mapKey =
mapDiv = map
mapId = 5
catShowOnDefault = all
catHideOnDefault =
hideLinksWithCat = 0
noListOnDefault =
menu {
orderByCat = title
orderByList = name ASC
description.wrap = <span class="rggooglemap-menu-descr">(|)</span>
header.wrap = <strong>|</strong>
itemFields = name, description, title, email, www, phone, mobile, address, company, city, zip, country 'fax, surename
item {
name.wrap =
}
}
marker {
tabCount =
tab1text = Info
tab2text = pix
tab3text = More
tab4text = plus
linkfields = email,www
wwwLink = _blank
description.wrap = |<br />
description.required = 1
name.wrap = <strong>|</strong>
city.wrap = |<br />
city.required = 1
address.wrap = <span class="rggooglemap-menu-descr">|<span> <br />
address.required = 1
}
image = IMAGE
image {
file.maxW = 200
file.maxH = 400
wrap =
imageLinkWrap = 0
imageLinkWrap {
enable = 1
bodyTag = <body bgColor="#dddddd">
wrap = <a href="javascript:close();"> | </a>
width = 1000m
height = 800
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20
}
stdWrap.spaceAfter=10
}
cat {
defaultImage {
image = "EXT:rggooglemap/res/mm_20_blue.png";
shadow = "EXT:rggooglemap/res/mm_20_shadow.png";
shadowSize = new GSize(22, 20);
iconSize = new GSize(12, 20);
iconAnchor = new GPoint(6, 20);
infoWindowAnchor = new GPoint(5, 1);
imageMap = [4,0,0,4,0,7,3,11,4,19,7,19,8,11,11,7,11,4,7,0];
transparent = "EXT:rggooglemap/res/markerTransparent.png";
}
cat1 < .defaultImage
cat1.image = "EXT:rggooglemap/res/mm_20_blue.png";
cat2 < .defaultImage
cat2.image = "EXT:rggooglemap/res/mm_20_purple.png";
cat3 < .defaultImage
cat3.image = "EXT:rggooglemap/res/mm_20_red.png";
cat4 < .defaultImage
cat4.image = "EXT:rggooglemap/res/mm_20_yellow.png";
cat5 < .defaultImage
cat5.image = "EXT:rggooglemap/res/mm_20_white.png";
}
_CSS_DEFAULT_STYLE (
background:#999999;
}
padding:1px 30px;
font-weight:bold;
}
padding:5px 0;
}
.tx-rggooglemap-poi {
float:left;
width:160px;
}
.tx-rggooglemap-poi li {
list-style:none;
}
.tx-rggooglemap-poi h1 {
text-decoration:underline;
}
.tx-rggooglemap-poi a, .tx-rggooglemap-poi a:link, .tx-rggooglemap-poi a:visited, .tx-rggooglemap-poi a:active {
text-decoration:none;
}
.tx-rggooglemap-poi a:hover {
text-decoration:underline;
}
)
}
plugin.tx_rggooglemap_pi2 {
mapId < plugin.tx_rggooglemap_pi1.mapId
tt_addressOnly = 1
tableType = tt_address
}
plugin.tx_rggooglemap_pi3 {
mapId < plugin.tx_rggooglemap_pi1.mapId
}
export_xml >
export_xml = PAGE
export_xml {
typeNum=500
config.disableAllHeaderCode = 1
config.metaCharset = utf-8
config.additionalHeaders = Content-Type:text/xml;charset=utf-8
10 = CONTENT
10 {
table = tt_content
select {
pidInList = this
max = 1
}
renderObj = COA
renderObj {
10 < plugin.tx_rggooglemap_pi1
10.userFunc = tx_rggooglemap_pi1->xmlFunc
}
}
}
worauf er mir die marker und pois anzeigt nur sind wie gesagt die "sprechblasen" leer.
gruß
arwed