By crischan on
Hi,
I'm working on a project using Drupal 5RC1. I've set up a set of around 15 profile fields in 4 different categories. Weird enough, when looking at user/register, the first profile category comes first, then the default account and picture field sets and then the remaining profile categories.
Well, this is not the way I want it. Looking trough the code I think that this behaviour can not be changed without hacking user and maybe even profile modules. I've done some Drupal module and theme coding so far, but nothing jumps to my brain how to override this order. Or is there a themeable function to theme a specific form to resort the category order?
Comments
Any news?
Any news on this?
Best,
/J.
I'm also interested in doing
I'm also interested in doing something like this. Is it possible to put weight on the categories themselves?
i also wan to have this
i also wan to have this feature.
This would be good
Weighting on categories would be very handy. A kludgy way of dealing with this is to put a number at the start of the category name to order them. Which leads on to another point. It would be great to have a way of managing category names. At the moment if you want to change a category you have to edit each individual field that is in the category.
its really handy
example:
1. category user
field : name
field : birthday
field : zodiac
2. category work
field : company
field : address
3. category etx
field : etc
stc...
but sometimes i mean often like this if you view user profile
2. category work
field : company
field : address
1. category user
field : name
field : birthday
field : zodiac
3. category etx
field : etc
stc...
not sorted in right order. drupal lackness? or there are some expert way with using command line? there not yet satisfaction solution.
jquery
For this problem, I used jquery. Even if you number the categories you create, it still doesn't handle the default fieldset with Account information.
To avoid any flicker, I set visibility:none on profile fieldsets on the registration page, then run a little jquery snippet to put the Account information at the top, then make them all visible again. I could use similar lines if I wanted to re-order the remaining fieldsets, but they work ok for me.
if(Drupal.jsEnabled)
{
// On ready
$(function(){
// Put the Account information fieldset in the right spot on the register page.
$("form#user-register > div").prepend($("legend:contains('Account information')").parent());
$("form#user-register fieldset").css("visibility", "visible");
});
}