ExpressionEngine 多站点管理员和成员组
我正在寻找一些链接,以获取有关 EE 如何处理与 MSM 相关的成员组的更多信息。
就我而言,我有两个会员网站。 一般来说,这两个网站服务于同一群人,因此 MSM 共享会员数据库这一事实对我有利。 我不清楚的是如何管理不同的访问级别组合,即:
- 站点 A 的成员,但不是
- 站点 B 的成员 站点 B 的成员,但不是
- 站点 A 和站点 B 的成员
因为,正如我在其他论坛中读到的那样帖子,您不能将一个成员分配给多个组,显然我必须在上述配置中创建 3 个成员组并相应地分配用户。 至少在模板中我可以检查组 1|3 的成员资格……对吗?
我们计划在单个站点内进一步将我们的会员资格划分为不同的访问级别。
例如,
- 对站点 A 的完全访问
- 权限 访问站点 A 的单月内容
- 访问单月的内容 + Web 工具
如果除了访问站点 B 的访问级别之外,我还必须创建管理上述每种组合的组,这将很快变得无法使用。
听起来我必须直接在模板中使用自定义 PHP 代码来管理 EE 之外的访问级别。
有人有这种事情的经验吗?
最好根本不使用 MSM,而仅将每个站点作为单独的安装进行管理,并使用单独的成员组吗? (这会挫败我首先使用 EE 的一些原因,即在站点之间共享博客内容)
外部资源或文档的链接会很有帮助。 (是的,我确实先检查了文档,但可能错过了一些东西......眨眼)
谢谢!
I’m looking for some links to further info on how EE handles Member Groups in relation to the MSM.
In my case, I have two membership sites. Generally speaking, the two sites serve the same overall group of people, so the fact that the MSM shares the member database works in my favor. What I’m unclear about is how to manage the varying combination of access levels, ie:
- Member of Site A but not B
- Member of Site B but not A
- Member of Site A and Site B
Since, as I’ve read in other forum posts, you cannot assign a member to belong to multiple groups, I’d apparently have to create 3 member groups in the above configuration and assign users accordingly. At least in the templates I can check for membership to group 1|3… right?
We’re planning on further dividing our membership to varying levels of access within a single site.
For example,
- Full access to Site A
- Access to a single month’s content of Site A
- Access to a single month’s content + web tools
If I have to create groups that manage each combination of the above, in addition to access to Site B’s access levels, this will quickly grow to be unusable.
It’s starting to sound like I’ll have to use custom PHP code directly in the templates to manage my access levels outside of EE.
Does anyone have any experience with this kind of thing?
Would it be best to not use the MSM at all and just manage each site as an individual installation, with separate member groups? ( that would defeat a some of the reason for using EE in the first place for me, ie sharing of weblog content between sites )
Links to external resources or the documentation would be helpful. ( yes, I did check the docs first, but may have missed something.. wink )
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这已经很老了,但从未给出/接受答案。 也许这会帮助那些偶然发现这个并且直接使用 EE 的人。
Ian,
我现在正在 6 个站点和这些站点中的多个市场上做类似的事情。
这就是我正在做的事情。 我希望它有帮助。
正如迈克尔所说,这些账户是系统范围内的。 因此,每个帐户都可以访问 MSM 下的所有网站。 我已经为每个要登录的“市场”设置了多个域(不是必需的)。 然后,在该“站点”(实际上是市场)下,我限制了其他站点的控制面板访问以及未跨站点使用的内容。 这使得它们看起来是特定于站点的,并且仍然允许超级管理员或我在它们之上构建的任何帐户跨多个站点进行管理。
示例:(让我们使用您的布局)
我将拥有三个成员组。
对于组 A,我将执行以下操作:(以超级管理员身份执行此操作)
对于组 B,我将执行以下操作:(以超级管理员身份执行此操作)
对于组 AB,我将执行以下操作:(以超级管理员身份执行此操作)
然后,当各个组的成员登录执行功能时,他们将只能看到他们拥有的访问权限已被授予,因此将这些站点视为独立的。
这对我有用。 希望它能帮助你。
I know this is ages old, but an answer was never given/accepted. Maybe this will help someone else who stumbles on this who uses straight EE.
Ian,
I am doing a similar thing with 6 sites and multiple markets throughout those sites now.
Here is what I am doing. I hope it helps.
Like Michael said, the accounts are system wide. So, each account will have access to all sites under MSM. I have set up multiple domains, (not required), for each "market" to login at. Then under that "site", which is actually the market, I have restricted control panel access for the other sites as well as the content not being used cross-site. This gives the appearance that they are site specific and still allows the Super Admin or whatever account I build above them to manage across multiple sites.
Example: (let's use your layout)
I would have three member groups.
For Group A, I would do the following: (Do this as Super Admin)
For Group B, I would do the following: (Do this as Super Admin)
For Group A-B, I would do the following: (Do this as Super Admin)
Then when the members from the respective groups sign in to perform functions, they will only see the access they have been granted and thus see the sites as separate.
This worked for me. Hope it helps you out.
您的会员数据库将跨越两个站点,因此不会出现用户是站点 A 的成员而不是站点 B 的实例 - 通过在任一站点上注册,都会为所有其他合作伙伴站点创建他们的帐户。
成员资格组可以有每个站点的首选项 - 因此,组在站点 A 上的权限可以高于在站点 B 上的权限。这还允许您为新注册的用户设置不同的默认组,具体取决于他们注册的站点。
关于 EE 每个成员一个小组的说法,您是正确的 - 因此您将建立多种小组。 EE 2.0 即将推出,不幸的是我还没有审查它的所有功能,但您可能想看看它是否支持每个成员多个组。
Your membership database would span across both sites, so there would not be an instance of a user being a member of site A and not site B - by registering on either site, their account is created for all other partner sites.
Membership groups can have per site preferences - so a group could have higher privileges on site A than they do on site B. This also allows you to setup a different default group for newly registered users, depending on which site they register on.
You are correct concerning EE's one group per member - so you will have a variety of groups built. EE 2.0 is coming soon though, unfortunately I have not reviewed all of its features, but you may want to see if it will support multiple groups per member.