Revision: 26681
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 6, 2010 09:42 by jsegars
Initial Code
plugin.tx_wecmap_pi3.tables.10 { table = tt_address join = JOIN tt_address_group_mm AS tta_txagg_mm ON tt_address.uid = tta_txagg_mm.uid_local # Hotels where = uid_foreign=6 icon { iconID = lodging anchorX = 0 anchorY = 0 infoAnchorX = 5 infoAnchorY = 1 imagepath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/lodging.png width = 32 height = 32 shadowpath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/lodging.shadow.png shadowWidth = 59 shadowHeight = 32 } # config for description description = COA description { 10 = COA 10 { 10 = TEXT 10.field = address 10.wrap = |<br /> 10.if.isTrue.field = address 20 = TEXT 20.field = city 20.wrap = |, 20.if.isTrue.field = city 30 = TEXT 30.field = state 30.wrap = | 30.if.isTrue.field = state 40 = TEXT 40.field = zip 50 = TEXT 50.value = Phone: {field:phone} 50.wrap = <br /><br />| 50.if.isTrue.field = phone 50.insertData = true } 10.wrap = <div>|</div> } } plugin.tx_wecmap_pi3.tables.20 < plugin.tx_wecmap_pi3.tables.10 plugin.tx_wecmap_pi3.tables.20 { # Travel = 5 where = uid_foreign=5 icon { iconID = travel imagepath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/plane.png shadowpath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/plane.shadow.png } } plugin.tx_wecmap_pi3.tables.30 < plugin.tx_wecmap_pi3.tables.10 plugin.tx_wecmap_pi3.tables.30 { # Conference Venue = 4 where = uid_foreign=4 icon { iconID = venue imagepath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/flag.png shadowpath = http://maps.google.com/intl/en_us/mapfiles/ms/micons/flag.shadow.png } }
Initial URL
Initial Description
The TypoScript below assumes that the WEC Table Map plugin is set up to display tt_address records, with one group for hotels and one group for a conference venue. The resulting map shows location icons based on the address group.
Initial Title
Configuring WEC Map to use different icons for each group
Initial Tags
Initial Language
TYPO3