Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > custom content in sidebar in v2
Total Posts: 9 - Pages (1): [1]
Author: Marco Bamert
Posted: Apr 01 2008 - 08:19 AM
Subject: custom content in sidebar in v2
First of all: great extension!

I have a question about the new table-map plugin: How can I customise the content to be shown in the sidebar? I would like to show the name, address and the description field there instead of only the name.

thanks in advance!
user picture Author: Christoph Koehler
Posted: Apr 01 2008 - 12:33 PM
Subject: re: custom content in sidebar in v2
Marco,

Theoretically you can do it via TS. Check out the TS definition for the sidebaritem [1] and adjust it as needed. However, right now none of other data you want to show is passed to it, so it's pretty useless. I will fix that today or tomorrow.

Thanks for the unvoluntary bug report!

Christoph


[1] http://svn.webempoweredchurch.org/wec_map/browser/trunk/wec_map/static/setup.txt
Author: Marco Bamert
Posted: Apr 02 2008 - 07:21 AM
Subject: re: custom content in sidebar in v2
no problem ;-) I didn't realise that this could be a bug report...
Author: Marco Bamert
Posted: Apr 02 2008 - 07:40 AM
Subject: re: custom content in sidebar in v2
Hmm, I now copied everything from static/setup.txt into the setup part of an extension template and added
20 = TEXT
20.value = testing
to the sidebarItem. It seems that this gets overwritten by static/setup.txt, because if I add it there, it appears on the website. But adding in static/setup.txt is no way... I'd like to have it in a template...

is this also an unvoluntary bug report or do I get something wrong here?
user picture Author: Christoph Koehler
Posted: Apr 02 2008 - 11:17 AM
Subject: re: custom content in sidebar in v2
Marco,

Hm sounds like something wrong on your part
Check the TS Object Browser inside the Template module to see which styles get included. That may help.

Christoph
user picture Author: Christoph Koehler
Posted: Apr 02 2008 - 11:30 AM
Subject: re: custom content in sidebar in v2
Marco,

Here is what's happening: The api static is included, the pi3 static is included and gets its values from the static api. Then if you add something else to the api static, it's never moved to the pi3 static.
Solution: Add it directly to the plugin's TS.

In just a minute you will have more data available in the nightlies to tweak the sidebar, too.

Christoph
Author: Marco Bamert
Posted: Apr 03 2008 - 09:18 AM
Subject: re: custom content in sidebar in v2
okay, thanks a lot for fixing that small bug. it works as far as I don't want to display the tt_address description field in the sidebar. if I add this field, it displays the content "description" from the bubble. Here's something wrong with the scope of the variables?
user picture Author: Christoph Koehler
Posted: Apr 03 2008 - 12:05 PM
Subject: re: custom content in sidebar in v2
Marco,

You are right. I overwrite the description. Will fix that this afternoon.

Christoph
user picture Author: Christoph Koehler
Posted: Apr 03 2008 - 04:48 PM
Subject: re: custom content in sidebar in v2
Marco,

I changed the field names to info_title and info_description respectively. It should work now.

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