Force a category on a per type, role and user
Richard Eriksson - September 25, 2006 - 22:01
| Project: | User force term |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | nestor.mata |
| Status: | patch (code needs review) |
Description
Right now you can only force individual users to post to a certain terrm. I'd love to see this for entire roles (e.g. all authenticated users required to categorize their post as "Vancouver Canucks" on a community site about the hockey team).

#1
I'd give a +1 to any additional controls over what categories users are allowed / forced to use.
#2
So something along the lines of: If a role forces a term and no user term has been set, use the role term. If a role forces a term and a user term has been set, use the user term?
#3
I would say this:
* if there's a forced term per role, then force it regardless of whether there's a forced term per user
* vice versa
That is, don't make one override the other. Naturally if they're the same, they wouldn't cancel each other out.
I could see how having the following three options might be useful though:
* no override
* role overrides user
* user overrides role
With the 'no override' being the default.
#4
I think if we mix this with the type we can end up with something like this.
We could have the force be in different levels, by type, role and user.
We could have a weight on each level to decide which level will have more priority than other.
Also we could have an option to tell if the term of a level will override or append to the other levels terms.
Also if we take the tid out of the users table we can support more than one term.
I'm working in a patch.
#5
Hi,
I have created a patch that makes the module able to administer a term for type, role and user and process them.
Also the ability to set the term as add, replace or none when editing that node and the also to add all the terms set in the different levels of type, role and user or to only use the most specific level term.
This gives the module the chance to work as has already being working or to set a term for each type of node or for each role, or combinations of these.
Please review and test this patch.
I hope this helps improve this really nice module that wulff created.
Best regards,
Nestor Mata
#6
hello Nestor.mata
I have tried to use this module, but it does not work, although the user to save their term, not associated with the content, categorized by this category, with that term.
Not the truth which is the problem.
I use Drupal 5.7,
thanks
#7
i also need a similar feature. Actually i'm using Taxonomy Access to restrict access permission & i want to force term for users that have just one role & hide the form. i can see a simple way to do it by hard code it with Javascript.
#8
One more suggestion for this great module :)
It would be great if one could force more than one term per user.
I also agree with the previous posts of being able to for terms per role.