Hello

On my site I want users to give the possibility to publish press articles. The "article" I define as custom content type "article". In order to avoid that some users publish 90% of articles I want to limit the number of allowed article-nodes with status "published" to n.
Example: Each user can have maximum 5 nodes "articles" on status "published" at one time.
I will have different user types and for each user type n is different. Example:
User Type A: 5 articles
User Type B: 10 articles

I want that this restriction happens automatically and was thinking of two ways:
1. When the user creates/edits a article-node a macro/SP is run to check whether the maximum is exceeded or not. Then the user is denied to change the status if the maximum has already reached
2. Run a SP every night which checks the maximum nodes for each user and disables the oldest nodes exceeding the maximum

My question: Is there already a mechanism in Drupal supporting this?

Thanks
André

Comments

rogerpfaff’s picture

take a look at node_family: http://drupal.org/project/nodefamily

beauregard’s picture

thanks! I will check this out and test