I´m a bit puzzled where to start.
This should happen:
- admins should be able to edit a Usergroup and define the amount of articles members of this group can create.
Before a group member creates/saves a new article in fronted, the amount of articles created by this user is compared to the max allowed articles of it´s group membership. Pseudo Code:
if ($articlesCreatedByUser < $allowedArticlesByGroup){ $article->save(); } else { die('you reached the article limit');
As I´m just starting with Joomla development here my questions.
- with Joomla3 it´s easy to create integer extra fields for Users, is this possible with Usergroups as well? If not what would be needed to extend the Usergroup backend form?
- what´s the easiest way to limit the article creation form as explained above. I´m unsure if I should dive into plugin creation (and hook into beforesave) or to extend com_content and it´s model save method?
Thanks!
Toni