Closed (fixed)
Project:
Mapstraction
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2010 at 13:11 UTC
Updated:
16 Mar 2010 at 22:20 UTC
I am requesting an additional feature to allow Mapstraction labels to have additional fields displayed when you click on the map marker. Right now it only shows a single Title label, which I can link back to the node. But in several cases I would rather just display a short line or two of text from the node body. Is that possible to add?
Comments
Comment #1
Old Man commentedI am requesting an additional feature to allow Mapstraction labels to have additional fields displayed when you click on the map marker. Right now it only shows a single Title label, which I can link back to the node. But in several cases I would rather just display a short line or two of text from the node body. Is that possible to add?
Comment #2
RockSoup commentedI am also interested in adding more fields to marker. Looking forward to hearing more. Thanks for this module, it is fantastic.
*edit* I am hacking things a bit to achieve something a little closer to what I am going for. I have switched my "title" in the mapstraction" config for the display type from node:title to a field I created to collect a bunch of other fields. I add the other fields first always selecting "exclude from display" and on my last field I choose "rewrite the output of this field" and use the token to put together what I want to appear on the marker. Works great. It is amazing the things you can do with that "rewrite... " option, views2 rulz.
Comment #3
davemybes commentedBrilliant work around for displaying other fields. Its a little more work than just adding each field to the list, but at least you can customize everything nicely, and you don't have to use a dev version of the module to do it (like you have to for Gmap at the moment).
This is a great module and so simple to use - bye, bye Gmap :)
Comment #4
levelos commentedRockSoup's field rewrite approach, or to theme a particular field with template file and/or preprocess function is the best way to go for now. It provides the most flexibility. I'll update the docs with some tips along these lines.