Drupal 6:使用有机组进行教育页面

发布于 2024-08-21 08:47:10 字数 432 浏览 5 评论 0原文

我在一所大型大学的部门网站上工作,希望根据不同用户的角色添加不同类型的功能。

主要有 3 类用户:

  • 公开列出的
  • 校友(列出,但基于不同字段并使用自定义模板文件)
  • 其他(网站上的用户,但未列出)

目前,我们正在使用内容配置文件公开列出的用户并在校友的核心资料表中列出内容。

问题是:如果我是教员,我仍然会看到校友的所有字段(尽管它在自己的选项卡中),如果我是校友,我会看到教员的所有字段。

问题:我想做的是根据他们的角色为他们提供不同的观点编辑“我的帐户”。所以我想知道,是否可以通过有机组来做到这一点,或者这是否需要自定义 PHP 编码?

感谢您的帮助

I am working on a departmental website within a big university and want to add different types of functionality for different users depending on their roles.

There are 3 main types of users:

  • Publicly listed
  • Alumni (listed but based on different fields and using a custom template file)
  • Others (users on site but not listed)

Right now we are using Content Profiles for the publicly listed users and list the content in the core profile tables for the alumni.

The problem is: If I'm faculty I still see all the fields for alumni (although it is in its own tab) and if I am alumni I see all the fields for faculty.

Question: What I would like to do is provide them different views of editing "My Account" based on their roles. So I wonder, would it be possible to do this with organic groups or is this something that needs custom PHP coding?

Thanks for the help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菩提树下叶撕阳。 2024-08-28 08:47:10

如果你问的是限制字段,那么它与OG无关。

我认为您正在寻找 条件字段 模块。

通过这种方式,您可以将节点设置为“校友”或“教师”,并根据它显示不同的字段。

If you're asking about limiting fields, then it has nothing to do with OG.

I think you're looking for the conditional fields module.

This way you can set a node as 'alumni' or 'faculty', and depending on it show different fields.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文