在基于 drupal 的站点中管理团队成员资格的最佳方式
我正在创建一个网站来管理体育联盟。每个赛季开始时,都会有一次选秀,队长们会在选秀期间选择自己的球队。目前,我正在考虑在团队类型上使用有机组和/或用户参考字段。 (哪一个?两个?)
我想提供一个干净的界面来管理草稿,管理员将拥有一桶用户,并可以将它们拖到每个团队的桶中。或者在表格之间或通过下拉界面或其他方式。我现在不太关心界面:
- 管理员可以查看和编辑
- 按团队分组的
- 所有用户,其中未分组的组
- 可以轻松地在组之间移动它们
我想我可能可以使用视图批量操作来发起一些事情,但在我这样做之前,外面有类似的事情吗?
I'm creating a site to manage a sports league. At the beginning of each season, there's a draft during which captains choose their teams. Currently, I'm considering using Organic Groups and/or a user reference field on the Team type. (Which one? Both?)
I'd like to provide a clean interface for managing the draft where an admin would have a bucket of users and could drag them into buckets for each team. Or between tables or via a dropdown interface or whatever. I'm less concerned about the interface at the moment than I am that:
- the admin can see and edit all the users
- grouped by team
- with an ungrouped group
- easily move them between the groups
I imagine I might be able to use views bulk operations to whip something up, but before I do, is there anything like this out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如您所怀疑的那样,这对于有机团体来说听起来是一个很好的方案。您可以为每个团队创建一个私人群组,并且只允许管理员或“团队队长”将人员添加到给定团队。视图查询可以让您显示不属于任何组的玩家的页面。我们为项目团队做类似的事情。
It sounds like a good scenario for organic groups, as you suspected. You can make a private group per team, and only allow administrators or 'team captains' to add people to a given team. A views query can allow you to show a page of players who don't belong to any group. We do something similar for project teams.
是的,有机团体的完美场景!这正是该模块的用途。
Yup, perfect scenario for Organic Groups! That's exactly what that module was meant to do.