Hello,

I like the hierarchal select, and I want to add it to the user profile. (using profile.module)
Is that possible?

thanks in advance

Ben

Comments

birdy1980’s picture

I am willing to use any other module.

I want the hierarchical select on a user profile page and on the registration form for new users. How can I accomplish that?

Ben

wim leers’s picture

Title: Hierachal selec ton user profile » HS on user profile
Status: Active » Postponed (maintainer needs more info)

It's not yet supported.

You'll have to extend profile.module with a new kind of field, I think. But I'm not sure if profile.module is extensible in the first place, so I don't know if it's even possible to support. You'll have to research that yourself.

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Postponed (maintainer needs more info) » Closed (won't fix)

I just gave a quick look at profile.module, and I'm afraid it's *not* extensible:

function _profile_field_types($type = NULL) {
  $types = array('textfield' => t('single-line textfield'),
                 'textarea' => t('multi-line textfield'),
                 'checkbox' => t('checkbox'),
                 'selection' => t('list selection'),
                 'list' => t('freeform list'),
                 'url' => t('URL'),
                 'date' => t('date'));
  return isset($type) ? $types[$type] : $types;
}

The only way to make it support HS is by hacking that module, and it won't be a small hack… So I'd recommend using another approach to use HS for user profiles. Maybe nodeprofile will allow you to use it, I don't know.