How to use one field with different settings I have a field that determines which category my content belongs to, stored in a taxonomy vocabulary. The field is used in both the content type and the user profile. Users may select a category, but they can select only one and definitely not more. The content however can belong to more categories, in my case 2. So the field settings should be different, but that is impossible when using a single field. Whenever i change the maximum number of values in useraccounts to 1, the field in the nodetype changes to 1 also. 

I use the same field to be able to make some views (starting from a user's perspective) to display content based on the users choice. 

I see three possible solutions: 


Somehow use a field alias, enabling me to define the same field in 2 different ways. But i haven't found a mod for field aliases;
Define two seperate fields with seperate settings. But i can't filter my output in a View based on the value of another field. Also, using a contextual filter won't work because there is no value to pass in the URL;
Set the max value to 1 and add the same node twice, one for each category. Which is not the way to go, obviously. 


Any clues to avoid option #3 ? I use D7 btw. 

Thanx,
Cas
Set the maximum number of values to unlimited.

Then using hook_form_alter change the categories select to only allow 1 value on the user profile form:

function YOUR_MODULE_form_alter(&amp;$form, &amp;$form_state, $form_id) {

    //drupal_set_message("Form ID is : " . $form_id);

    switch($form_id) {

        case 'user_profile_form':

            //dpm($form);
            $form['field_category'][LANGUAGE_NONE]['#multiple'] = false;
            break;

    }
}


If need be you could also add an additional validation handler here to add some custom server side validation to make sure that the user is not selecting more than 1 department.