Closed (duplicate)
Project:
Addresses
Version:
6.x-1.0-alpha3
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 09:00 UTC
Updated:
20 May 2009 at 23:51 UTC
Thanks for the module. I like it.
This feels like a stupid question... I added the CCK address field, but how do I change the order that the address items appear on the node edit page? By default when I edit the node I see:
This seems like an un-intuitive order to me.
When I save and view the node then the fields appear in a normal order.
Comments
Comment #1
AlexisWilke commentedNow that I have added sub-modules, I can see this problem too, quite a bit.
I think it would be really cool if we could have the same system as for menus & modules (a weight system where -50 is first and +50 is last...) I do not know how easy/hard it would be to add to your existing table of radio buttons. But that's where I would put it!
Thank you.
Alexis Wilke
P.S. this is also a problem without the CCK extension that is.
Comment #2
AlexisWilke commentedAs a temporary fix, I actually went in the code and added a weight to all the fields. That forces the order automatically (by the Drupal FAPI, Form internal stuff).
Here is the phone entry, see the extra 'weight' field at the end. Make sure to add a comma on the previous line if you do not have one yet.
At this time, ordering the fields in this way is useful only for the setup. In other words, you may not care much. The weight does not carry over to the other forms. For that you need to add a '#weight' in the second part. I suggest the same weight in both places.
Obviously, this is not too good since you need to edit all the files to fix/change the weights... but until a good old fix, it should do for you.
Thank you.
Alexis
Comment #3
mikepadiernos commentedI looked within the source and I found out that the output of the form goes by the order within the module itself. I moved it around following the order I liked and it came out properly.
Comment #4
picciuto commentedCan you point me where within the code i can rearrange this? Thanks.
Comment #5
AlexisWilke commentedpicciuto,
There are several places.
Edit the addresses/addresses.module file to see the main list of fields.
There are such fields in all sub-modules though.
Thank you.
Alexis
Comment #6
picciuto commentedThanks Alexis!
Comment #7
panchoIt would be cool if it was configurable just as the displayed address formats are. I might take a look at this the next days.
Comment #8
panchoComment #9
brmassa commentedGuys,
hi! A similar issue was created on http://drupal.org/node/290579, so i will keep the communication there ok? I will work on the solution right now.
regards,
massa
Comment #11
mrtoner commentedMarked as duplicate of #290579: Order of Fields on Submission Forms.