Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > different marker-bubble contens
Total Posts: 5 - Pages (1): [1]
user picture Author: Heiner Rhoden
Posted: Dec 18 2007 - 06:12 AM
Subject: different marker-bubble contens
Hello.

I've 2 maps for different user_groups.

How can I show different Bubble contents in each map?

Can anyone give me some ideas?

Heiner
user picture Author: Christoph Koehler
Posted: Dec 18 2007 - 10:21 AM
Subject: re: different marker-bubble contens
Heiner,

If they are on different pages, just add different TS to change the contents on each page into an extension template. If they are on the same page, it's a little tricker. You can't have two different configurations if you added the plugin through the Page module.
Instead, you can create and configure the map as TS objects and add them to the page using the tscobj extension. That way you can use different TS config for each.

Let me know if you need anything else!

Christoph
user picture Author: Heiner Rhoden
Posted: Dec 18 2007 - 04:08 PM
Subject: re: different marker-bubble contens
Hello Christoph.
Thanks for you help. It's working.

But there is another problem:

How can I show field from other table of database in bubble?

Can you give me a hint?

Heiner
user picture Author: Christoph Koehler
Posted: Dec 19 2007 - 01:03 PM
Subject: re: different marker-bubble contens
Heiner,

At the moment that's not easily possible. We are working on a third plugin that could map anything that is mappable and configured that way, like tt_address and such. Then we will probably allow other table data to be displayed in the bubble.

Until then I am afraid the only way to do it is writing your own user function in PHP that configures what is shown in the bubble. Unfortunately we can't give you step by step instructions on how to do that because it's pretty advanced.

The TS would probably look something like this, but it's untested:
CODE:

plugin.tx_wecmap_pi1.marker.description = USER
plugin.tx_wecmap_pi1.marker.description.userFunc = my_user_func


And whatever is returned will be shown in the bubble.


Christoph
user picture Author: Heiner Rhoden
Posted: Dec 20 2007 - 02:29 AM
Subject: re: different marker-bubble contens
Hello Christoph.

Thanks for answer. I'll wait until you offer your third plugin, because my php-knowledge is really bad.

I wish you and wec-team MERRY XMAS.

Thnaks for your great job and extensions.

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