It isn't making complete sense to me to have the 'add another location' option on the node view page... shouldn't that be on the node edit page? I can understand why you may want to make adding of locations to nodes more accessible to people viewing the nodes, but it's still edit functionality.
Maybe if you're set on keeping it on the view page, add an administration option to let people choose whether it should be on the view or edit page.
I can see that adding the option to the edit page would (in its current form) break any other edits that had been made to the form, so perhaps the ability to add another location fieldset (when the amount of fieldsets shown already is less than the max amount) on-the-fly instead of refreshing the page?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | location_addanother_0.patch | 1.86 KB | Tobias Maier |
| #2 | location_addanother.patch | 1.73 KB | geodaniel |
Comments
Comment #1
csc4 commented+! to this - it's causing my users a lot of confusion!
Comment #2
geodaniel commenteda +!, you must be keen on the feature :)
I've attached a patch to give the admin the option to add this "Add another location" functionality on a per content type basis.
Comment #3
csc4 commentedToo excited to type apparently!!
Thanks a lot for the patch too! amazingly speedy!
Comment #4
Tobias Maier commentedlooks valuable, too
Comment #5
Tobias Maier commentedstatus...
Comment #6
Tobias Maier commentedupdated this patch
Comment #7
geodaniel commentedModified version (form element name didn't need $type appending to it) committed to HEAD and DRUPAL-5 branch - will backport to 4.7 too.
Comment #8
geodaniel commentedComment #9
geodaniel commentedcommitted to DRUPAL-4-7 branch too - thanks for the updated patch Tobias!
Comment #10
(not verified) commentedComment #11
bomarmonk commentedAm I missing something? When I disable the "add another location" for the node view, there isn't a way to add another location in the edit form. Shouldn't there be a way to add a location from the edit form?
Comment #12
michelleBumping this. There really needs to be a way to add another location from the edit page. My pages are themed so I didn't even know there was an option on the view tab until I read this issue because it doesn't show up on mine. Even if it did, it still needs to be on the edit tab.
Michelle
Comment #13
bomarmonk commentedAnd the real fun begins when you have locative information attached to a CCK content type that is themed with a contemplate. Currently, contemplate bypasses any modules linking to the bottom of the node body, so you either have to add the module's information with code in the template, or you are pretty much out of luck with this combination of modules (if you have more than one location for a node). Does anyone have a snippet of PHP that will add the "add another location" link to the bottom of a node? That would help in the meantime.
Comment #14
bomarmonk commentedYes, I double checked and when the "add another location from view" is unchecked, the add another location does not show up in the edit form. Shouldn't it do this? I am using location with a CCK content type and Drupal 5.2. Is there a way to get the add link to show on the edit form?
Comment #15
bdragon commentedClosing, I really think it's just a misconfiguration issue.
Comment #16
michelleBefore you close this... Could you tell us how to configure it? I went all over the options and couldn't figure out any way to make location give you an option to add another location when you are adding/editing a node. It's been a while since I looked at it but, back then, I came to the conclusion that the functionality wasn't there and gave up. So, if it is, I'd love to hear how you do it. :)
Michelle
Comment #17
bdragon commentedSet "number of location forms" to > 1, I think.
Comment #18
michelleOk, we just chatted on IRC and it looks like it's a bit better than I remembered. I thought if you wanted 30 locations allowed you had to put all 30 on from the get go. Turns out that there's another option to set how many show up to start with, that I really dont' remember being there before but I could be wrong. So that's still not ideal, but better. Putting this back to closed like Bdragon had it and this can be addressed in an over all FR to improve how locations are added.
Michelle
Comment #19
rickh commentedSorry for commenting on a closed issue but, is there any way that this may be ported to the latest 6.x-3.1 version? I've had a look at [master]Improve UI for entering and geocoding of locations, but it seems it has hit a dead-end of sorts.