Closed (fixed)
Project:
Location
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2007 at 17:37 UTC
Updated:
24 Oct 2008 at 16:20 UTC
I've created a CCK for distributors and I want to have their address and the country/region they cover but I'm confused as to how I can do that? If I say two locations on the content type how do I specify only country/region for the second one? Or is there a better way to do this?
Comments
Comment #1
csc4 commentedBump.
Has no-one had to do anything similar to this?
Comment #2
ankur commentedWell, this is a little tricky.
The way the code works: On a form w/ multiple locations, for location forms after the very first form, if the country field is the only field filled in when more than one field is enabled, the code "guesses" that the user didn't mean to fill in another form, so it doesn't save that location. However, it doesn't do this for the first location form.
So, the way to go about doing this is to use the first location for the region (making the country a required field) so that the location-save code doesn't throw it away and then to use the second location form for the distributors full address.
Comment #3
csc4 commentedThanks a lot - I'll give it a whirl!
Comment #4
bdragon commented