As far as I could see, one cannot configure where the "User choice" block is shown in the registration page.
It could be nice to have the ability to manage this through user settings/manage display.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | autoassignrole-user_roles_weight-1261208-19.patch | 2.52 KB | pramod_patil |
| #17 | after.png | 73.64 KB | lomasr |
| #16 | autoassignrole-user_roles_weight-1261208-16.patch | 2.46 KB | pramod_patil |
| #12 | registration_page.png | 39.55 KB | lomasr |
| #12 | after.png | 40.2 KB | lomasr |
Comments
Comment #1
maxlife58 commentedSame request, when administrator activates "User choice" option from autoassignerole config, it would be very usefull to manage the position of the field "Register as" in registration form, for example by giving it a weight.
In my case it would be important to put the field "Register as" as first, there is a way to do this?
Comment #2
Anonymous (not verified) commentedDid anyone find a solution to this ? If yes, please share.
Comment #3
waluyo.umam commentedI activated the user choice, however I cannot control the position. Requesting to have the position control feature. Thanks.
Comment #4
mike.davis commentedThis sounds like it would be a good feature to have. I would welcome any patches for review for this feature if anyone would like to have a look at it.
Comment #5
pramod_patil commentedComment #6
pramod_patil commentedI have completed this functionality. Please review the patch.
Comment #7
pramod_patil commentedComment #9
pramod_patil commented#field_parents was missing from my previous patch. Adding new patch, please review.
Comment #11
pramod_patil commentedCorrected the patch once again. Please review.
Comment #12
lomasr commentedPatch worked cleanly . I can see the added field in 'admin/config/people/autoassignrole/user' . Please see after.png. I entered the values -1,10 but I can't see the change in the field set positions on user/register page. Please see registration_page.png.
Thanks
Comment #13
pramod_patil commentedHi @lomasr,
Thanks for testing my patch.
Can you please try with very high and very low value?
The username & password field container has the weight -10. To get the user roles field on the top, please give it the weight less than -10. Ex. -11, -20 works fine.
To position it in the bottom, please try adding higher value. Ex. 20, 30 etc.
Thanks,
Comment #14
lomasr commentedok , I tested it as you suggested . It worked for me . Please mention this is the help text other-wise it seems confusing.
Thanks.
Comment #15
lomasr commentedComment #16
pramod_patil commentedHi @lomasr,
As per your suggestion, I have modified the weight field's description. Adding new patch. Please review.
Thanks,
Comment #17
lomasr commentedHi pramod_patil ,
I applied the patch but it failed . Please see the screen.
Thanks
Comment #18
mike.davis commentedThe contents of the t() function shouldn't wrap multiple lines as this then can't be translated correctly.
You shouldn't really include HTML within the string either. You could break this into four different strings joined together by the
tag so that they can be translated correctly.
Comment #19
pramod_patil commentedHi @mike.davis,
I have corrected the t() as per your suggestions and broke down description into 4 different strings. Please review.
Comment #20
Anonymous (not verified) commentedThis works as the patch provider says and helped me solve the issue. Thanks Pramod Patil.
Comment #22
mike.davis commentedThis has been committed now