Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

4.6. Customizing the info bubble

Customizing the info bubble of the maps is possible by using TypoScript. The relevant default configuration for the plugins looks as follows:

plugin.tx_wecmap_pi1.marker {
title = COA
title {
10 = TEXT
10.field = name
10.wrap = <h1>|</h1>
}
description = COA
description {
10 = COA
10 {
10 = TEXT
10.field = address
10.wrap = | <br/>
20 = TEXT
20.field = city
20.wrap = |, 
30 = TEXT
30.field = zone
30.wrap = | &nbsp;
40 = TEXT
40.field = zip
}
10.wrap = <p>|</p>
20 = TEXT
20.field = phone
20.wrap = <p>|</p>
}
}

Changing the content of the info bubble is now only a matter of adding, removing, or changing the content objects. For example, to add the image of a user and the web address to the info bubble of the WEC FE User Map plugin, add the following snippet to the plugin's TS setup:

plugin.tx_wecmap_pi2.marker.description.10 {
  50 = IMAGE
  50.file.import = uploads/tx_srfeuserregister/
  50.file.import.override.field = image
  60 = TEXT
  60.field = www
}