Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > WEC Map: tx_wecmap_pi1
Total Posts: 8 - Pages (1): [1]
Author: chris paul
Posted: Apr 25 2008 - 04:09 PM
Subject: WEC Map: tx_wecmap_pi1
Dear Christoph,
how do I manage to set the zip code for addresses in Germany like this: "12345 city" instead of "city, 12345"? (Sorry, I am not a php specialist...).
user picture Author: Christoph Koehler
Posted: Apr 25 2008 - 04:20 PM
Subject: re: WEC Map: tx_wecmap_pi1
Chris,

Do you mean the display in the info bubble? Add this to your TS:
CODE:

plugins.tx_wecmap_pi1 {
marker {
   address = COA
   address {
      10 = TEXT
      10.field = street
      10.wrap = | <br/>

      20 = TEXT
      20.field = zip
      20.wrap = | &nbsp;

      30 = TEXT
      30.field = city
      30.wrap = | ,

      40 = TEXT
      40.field = state
      40.wrap = | <br/>
      
      50 = TEXT
      50.field = country
   }
   address.wrap = <div>|</div>
}


That should do the trick.

Christoph
Author: chris paul
Posted: Apr 25 2008 - 05:09 PM
Subject: re: WEC Map: tx_wecmap_pi1
Thank You for your fast answer. That is what I was looking for.
Author: chris paul
Posted: Apr 26 2008 - 03:25 AM
Subject: re: WEC Map: tx_wecmap_pi1
Hi Christoph, I copied your TS-Code into the setup of my site's root template with no success. Also tried it in the constants field of the template and later in the TSconfig of the map page. Even adding a brace at the end of the TS (don't know if that is right) did not bring any change. ZIP-Code is still showing after city = city, zip-code.

There is also no difference on the shown map if I change the zoom level to 4 by doing this:

plugins.tx_wecmap_pi1 {
zoomLevel = 4
marker {
user picture Author: Christoph Koehler
Posted: Apr 26 2008 - 10:23 AM
Subject: re: WEC Map: tx_wecmap_pi1
Chris,

Which version of maps are you running? It looks like in the current version, the address TS is not correctly parsed. Please try to install one of the latest development builds from our svn site [1].

Also, there was a typo in the code I pasted. It's plugin, not plugins, like so:
CODE:

plugin.tx_wecmap_pi1 {
marker {
   address = COA
   address {
      10 = TEXT
      10.field = street
      10.wrap = | <br/>

      20 = TEXT
      20.field = zip
      20.wrap = | &nbsp;

      30 = TEXT
      30.field = city
      30.wrap = | ,

      40 = TEXT
      40.field = state
      40.wrap = | <br/>
     
      50 = TEXT
      50.field = country
   }
   address.wrap = <div>|</div>
}


Let me know if that works!

Christoph
Author: Frank Struck
Posted: Apr 27 2008 - 08:37 AM
Subject: re: WEC Map: tx_wecmap_pi1
Christoph,

in my test environment I updated to r559 and I noticed that the output of the title and the description in the info bubbble is not like I defined it, but the address output is ok.

Here's the code:

CODE:

plugin.tx_wecmap_pi1 {
           :
   
   marker {
      title = TEXT
      title.field = title
      title.wrap = <font style="font-size:15px;"><b>|</b></font>
   
      description = TEXT
      description.field = description
      description.wrap = <p><font style="font-size:13px;">|</font></p>

                :
      
      }
 }



And here's the output: http://test.zephyr-treff-ruhr.de/ztr_party.html

Not the right font-size, no line feeds. Why doesn't the plugin accept my definition?

Frank
Author: chris paul
Posted: Apr 28 2008 - 06:03 AM
Subject: re: WEC Map: tx_wecmap_pi1
Christoph,

plugin, not pluginS: that was it! It's working brilliant now (also had an older version running...).

One more thing I couldn't solve:
When I show the map with the marker of the bubble at the beginning ("Show info bubble on load"), the "X" to quit the marker (in the address data panel of the bubble) is hidden beneath the "web type menu" in the top right corner(beneath Normal and Satellite). Closing the bubble an clicking on it again will show the marker in the right position without hiding the "X".

Is there a way to fix this?
Thank you for your help and "wecmap"!

Chris
user picture Author: Christoph Koehler
Posted: Apr 28 2008 - 11:30 AM
Subject: re: WEC Map: tx_wecmap_pi1
Chris,

I don't know that there is a way to do that. All we do is trigger the click event on startup. You may can try setting a different center to allow for more room.

Christoph
Total Posts: 8 - Pages (1): [1]
You must login to post a message to this conference.