issue #320111: node view gmap: block fix inspired me to create a new issue to track what frequently asked questions (faq or faqs) are asked about location "How do I ...?"
Add your idea for what question documentation is needed to address, and if possible, point to the issue in the queue that contains more information that can be useful in writing the faq documentation.
to link to another issue, view the issue and look at the url, there is a number after drupal.org/node/nnnnnn In your reply here, use the format [#nnnnnn] and it will turn the project issue number automatically into nice links to that issue.
I'm going to assign myself, but anyone can help me! Just post what faq you are working on so we dont duplicate efforts.
Comments
Comment #1
yesct commentedHow do I show a map of the user's location on the user's profile page? #279824: Possible to have the user's location show (via Gmap) within their profile page?
Comment #2
yesct commentedWhen using location cck fields and views, can create a view of type: node (instead of location). See: #325804: Support for custom node (CCK) fields (getting fields in gmap bubble, using node type view to display location fields)
Comment #3
yesct commentedWhile I was/am going through the queue trying to find duplicates and get more info on issues so they can be fixed, I used a bunch of tags. I'll post them here. To find all the issues that were tagged with a tag, use the "advanced search" in the issue queue, and start typing in the tag field and they should come up. Sometimes I'll leave all the other fields in the advanced search blank, sometimes I might combine something in one of the search fields and a tag to narrow the search.
I'll probably come back and edit this post as I add tags.
Oh, at the end of the list are suggests for search strings that are NOT tags.
some tags:
location auto-complete (I used this for more than auto-complete, also for like location inheritance, for example initializing node location edit form default to user location, someone could go back and make a new tag, and fix mine... sorry)
location bdragon check (check like an assumption about the direction of the module)
location bdragon consider commit (flag something that might be ready for bdragon to commit)
location browser specific problems
location cool idea
location (non-cck) node map
location cck
location cck views
location collection settings require allow etc
location compatibility with other modules
location conflicts with other modules
location display settings hide
location defaults
location extra location fields like phone etc
location exporting
location geo-coding
location importing
location ISO codes
location latitude and longitue set to zero
location maintainer needs feedback from you
location map on profile 279824
location Master Issues
location multiple locations
location proximity view
location view arguments
location proximity to user viewing node
location cck proximity view vid nid hack
location cck proximity view using relation
location proximity view to author of node
location proximity view zip code
location performance improvements
location permissions
location polygons
location taxonomy
location theming
location theme edit form
location theming map links
location translation
location translation german
location module phone fax display worked before
location validation
location hierarchial select or ajax
location still an error question (something I think was most likely fixed in a recent release)
location upgrading versions
location useful code (fixed a user problem, but not for commit)
views location module phone fax number display worked before
search for:
form_alter
location.xx.inc
Comment #4
yesct commentedfaqs that are needed:
Why is my map empty/has no markers?
Why is my location showing on the map as 0.0 / 0.0?
How do I make a map of ... ?
Comment #5
yesct commentedOK. I've been through the whole queue once. I would like to go through it again, because now I have a much better understanding of the current "happenings", but I dont have time right now. Maybe I can do it in 2 or 3 weeks. I'm hoping in the next 2 or 3 weeks a couple things will happen: issues now marked as fixed - will close, a bunch of people will respond back to requests for more information saying - the most recent version fixed this for me - closed, and bdragon will be able to get some commits done now that the queue is a bit more organized. I'm hoping!
So, please feel free to post a FAQ Q or A, and link to an issue with the best A :)
Comment #6
yesct commentedadded a tag for
location country name vs country code
Comment #7
yesct commentedbumping this up.
Comment #8
yesct commentedbumping this up to help people submitting new issues maybe search for the tags above first.
Comment #9
eff_shaped commentedOh, YesCT, I have SO MANY questions right now, it's hard to organize them...
My first questions, would be:
Where are all the places I need to go in the admin area to configure this module?
And what do all the settings mean?
Do I need to do anything to settings for Gmap module to make it all work?
I'm incorporating Location module into an Event content type.
I also have the following 'how to' questions:
- I'd like the postal code, that's entered in the form, to create the location in the gmap. (Postal code will mostly be in UK)
- I'd like to not see any longditude or latitude numbers (they mean nothing to my users)
- I'd like the 'See Map: Google Maps' link to say 'See map' only.
- I'd like the option to display the map on the Event node.
I have worked out, there are many places where configuration and settings need to be made, to get module features to be available. More, I think, than are mentioned in the INSTALL.txt that comes with the module.
I found more answers at the Location documentation page, that you might use in documentation improvements
(DocMartin gives some vital settings information in comments, ie - max number of locations in locative information settings needs to be more than 0).
http://drupal.org/handbook/modules/location#comment-1319972
I will continue to look for answers and add them when found. Thanks for working on this.
Comment #10
eff_shaped commentedAn ANSWER to: 'How to hide map coordinates from node display'
To stop showing the degrees of lat. and long. map coordinates...
In Administer > Content management > Content types > [your node type]... edit (admin/content/node-type/[your node type])
Locative information... Display settings...
Hide fields from display: Check 'Coordinates'
Comment #11
nickl commented+1 A documentation thread is a brilliant idea.
I have stumbled on these interesting solutions for adding a map to a node view which should be documented node view gmap: themeing fix of which #18 add block to node template makes a part of a theming topic.
[edit] More information on placing blocks in many places http://drupal.org/node/26502
Who is eager to start rolling advanced help patches for these?
Comment #12
nickl commentedGet lat and lon values of CCK Location field has some documentable information about retrieving the cck fields.
How do I display a GMAP for a Location CCK field ? Many tips and tricks to review for documentation.
Comment #13
nickl commentedThanx to SeanBannister: Enable map in node view with location_cck display field settings
Comment #14
joachim commentedSome basics the documentation needs to cover:
(and this is assuming I have understood the module correctly)
1. Location module alone does nothing: you need either node location, user loction, location CCK (any others?) to actually begin to do stuff
2. Locations are not nodes, they are their own entity in the database. (This is not immediately obvious. This means -- I assume? -- that the location CCK field merely points to a location rather than holding the data itself.)
3. what's this about? admin/settings/location/geocoding
Comment #15
nickl commented1. node locations, location CCK and user locations
These are the modules used to attach locations, a collection of location fields, to either a node or a user. Locations are groups of fields like; Street, City, State/Province, Postal code, Country, Province, GPS Coordinates and even a map (if you install the gmap module) defining locations. You can attach one or many locations to either a node or a user through the functionality enabled by these modules. User locations module allows your site users to define their locations on their accounts. This user location opens a treasure chest of possibilities to interact with content, physically assigned their own locations, in your vicinity.
Node locations, a legacy module from drupal past, and location_cck, the new kid on the block, go by different ways and means to accomplish the same thing, attach locations to nodes.
2. Locations are not nodes.
Indeed they can be seen as their own entities which are stored in the location table and each in turn linked to other drupal entities through the location_instance table. The modules each attempt to enable a user interface to add or edit and display the location data but it is location module who supply them with the form to capture the data with, handles the storing of the data and even exposes the stored fields to views. Location entity if I may, is nothing more than a location id (lid) attached to the unique id (nid,uid) of another entity through the wizardry employed by the location module.
User locations we already mentioned attaches to a user account form, node locations does a similar trick to node edit forms, not much different to the familiar Menu settings, Book outline or Publishing options we love and know. Location cck turns the whole location capture form inclusive of map and all the bells and whistles into a single cck field which can be configured and added to content types.
3. Geocoding
http://en.wikipedia.org/wiki/Geocoding
Geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or zip/postal codes.
Once you have the latitude and longitude you can plot the coordinates on a map.
When using location with the gmap module and you save a node with an address filled in, the settings configured for the selected country (admin/settings/location/geocoding) will be used to retrieve the lat and long and plot the result on the map automagically. If this is a little too much voodoo for you then try the QuickGeocode module which provides you with a button to position the map through ajax.
Google already has support for most of the countries listed on the geocoding options settings page but they are hard coded in geocoding/google.inc. Download and apply the patch from #584014-11: RTBC auto load geocode country list to automatically retrieve the list from google and enable all the supported countries, most of which are currently marked "None supported.", ready for you to start your own personal maps.google or whatever else you can fathom.
After applying a patch and testing the functionality remember to return to the issue with your findings positive and negative. Only through your support and feedback will we be able to improve this software and turn all the voodoo into I can do.
Comment #16
joachim commentedThanks for the reply!
I'll see if I can incorporate some of that into the documentation pages.
Though:
> location_cck, the new kid on the block
... which doesn't really work far as I can make out -- no data is supplied to Views.
Comment #17
nickl commentedLocation cck data in views
Not a mundane task at all, dragonwize gives a brief explanation with a screenshot over here #383244-16: location_cck back compat and views support. You don't have to install the patch to make it work, it seems the latest dev release works the same.
There are two ways to get the fields to display, by using a location type view or by using a node type view with a Content: Location relationship and configuring every Location field to use the Location relationship. The first option is easy if you don't try and get any other details like Node: title to display as the location fields will all show but the others are blank. The complete opposite to what happens in node type views with the location fields, without the relationship configured, coming up blank.
There is another way! I prefer easy and simple but works well...
The patch at #391160-44: CCK/Views: location_instance fix fixes the location_instance table to add the node relationships to the location_cck entries which make the views work straight out of the box. Until now exclusively reserved for location_node, allows location_cck to use the standard views configuration supplied by location module instead of reinventing the wheel and taking the long way around. This also means that location_node and location_cck will have some serious conflicts.
Installing both modules will result in duplicate locations displayed in node teaser or full views and a whole lot of brokenness if you attempt using both on the same node. There is a patch to force location_node to play nice and avoid content types with location_cck fields if you really really really want to run both.
But why make the effort I ask, do we actually need two modules with similar functionality? This is not a new debate, these discussions have been going on since the inception of location_cck I gather.
Let us know if you had success!
Comment #18
eff_shaped commentedHow to correct localisation that has been set up in location.*.inc?
I'd like documentation on how to alter any files/functions to make the module show UK counties (up to date) in the province field. I have a list to insert. I don't know whatall the abbreviations are for.
I'd rather not hack the module.
There's discussion going on here: http://drupal.org/node/326665
Comment #19
yesct commentedviews and cck locations, using a relation. I did a demo. the first part will bore you. maybe start watching at 11:30. http://cathytheys.blip.tv/file/3439392
Comment #20
yesct commentednew tag:
location novice review
so someone who has never reviewed a patch, but wants to help move location forward, can find an issue that would be easy to review
here is a link to an advanced search for that tag: http://drupal.org/project/issues/search/location?issue_tags=location%20n...
come on, you know you want to review something! We'll help, ask me (or someone else) in IRC
http://drupal.org/irc
And read this on reviewing (but note reviews dont have to be as formal as that):
http://drupal.org/patch/review
If you post in #drupal or #drupal-support that you have never reviewed a patch before, but want to for the first time, I am almost certain that someone will help you, and they will be really nice to you too.
Comment #21
yesct commentedadding this search link .. there seem to have been quite a few token module related issues:
http://drupal.org/project/issues/location?text=token&status=All&prioriti...
Comment #22
podaroknot critical!
Comment #23
legolasboClosing old D6 issues as D6 is end of life