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!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | show_name_sans_details.patch | 571 bytes | manerhabe |
Comments
Comment #1
chrissearle commentedThe 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.
Comment #2
manerhabe commentedThanks, don't know how I missed that one! I created a patch. There are details at http://drupal.org/patch/create.
Comment #3
bdragon commentedSince 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.