I created a custom content type called "event" and set each location field to allow (name, address, etc.). If a location name is the only field used when submitting an event, the location name will not display when the event is created (see http://tampabay.indymedia.org/event/test-event2 for an example, where I used a location name of "test location2" but it is not showing because I did not enter an address). If an address is entered along with a location name, then the location fields will be displayed as expected (e.g. http://tampabay.indymedia.org/event/test-event). I am using the latest version of 5.x-1.x-dev.

Other than this small issue, the module has been working great--thanks!

CommentFileSizeAuthor
#2 show_name_sans_details.patch571 bytesmanerhabe

Comments

chrissearle’s picture

The code is in location.inc - function _location_nothing_to_show

If you replace

foreach (array('street', 'city', 'province', 'postal_code', 'country') as $field) {

with

foreach (array('name', 'street', 'city', 'province', 'postal_code', 'country') as $field) {

you'll get what you want :)

Not sure how to submit this as a patch tho.

manerhabe’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new571 bytes

Thanks, don't know how I missed that one! I created a patch. There are details at http://drupal.org/patch/create.

bdragon’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Since the new system doesn't save empty locations (in theory), this shouldn't be a problem... In any case, the function in question is going away.