Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to limit tags that can be added to node by just those that are created by the user who is creating the node.
What is the simplest way to do so?
Comments
Comment #1
earwax CreditAttribution: earwax commentedYou can limit values in the term reference field. In the field settings section, it says "Number of Values". Just choose the number of values.
Does this help?
Comment #2
POVYLAZZZ CreditAttribution: POVYLAZZZ commentedNot really you see I want to limit terms possible to add not by number but by author of them.
I was thinking that Rules module could do it but apparently not. It seams I will have to resolve this with some custom coding.
Comment #3
earwax CreditAttribution: earwax commentedYup, this sounds very much like writing your own module on validating by author, content type, and tag term(s). Then it gets messier because then you will have to somehow define which author(s) get to provide how many terms. Maybe if they are already nicely in Drupal roles, then that should be easier.
Good luck!
Comment #4
brandy.brown CreditAttribution: brandy.brown commentedYou might want to consider looking into the community tags module ... just a thought.