将其他内容类型添加到 OpenAtrium 案例跟踪器
我正在使用 OpenAtrium Drupal 安装配置文件构建一个网站。我想要有多个可以一起跟踪的“案例”内容类型(显然它们都会共享基本案例字段)。我想知道解决这个问题的最佳方法是什么。我应该制作一个覆盖 atrium_casetracker 的覆盖模块吗?我应该制作一个全新的功能吗?
I'm building a site with OpenAtrium Drupal installation profile. I want to have multiple content types of "cases" that can be tracked together (obviously they would all share the basic case fields). I'm wondering what the best way to approach this is. Should I make an override module that overrides atrium_casetracker? Should I make a completely new feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前也曾处于这个位置。这是我的推荐。
casetracker_case_node_types
变量,以便 casetracker 将您的内容类型识别为案例类型。您需要在创建新案例类型的节点之前执行此操作,否则您将面临迁移复杂性。 (请参阅 http://drupal.org/node/734542 以使其更好。) **为了兼容性对于 OpenAtrium 的 Atrium Casetracker 功能,请使用hook_strongarm_alter()
修改此变量,以避免创建与 Atrium Casetracker 冲突的功能。如果您对此有疑问,请发表评论,我将更新我的答案以进一步澄清。
I've been in this position before. Here's what I recommend.
casetracker_case_node_types
variable so your content type is recognized by casetracker as being a case type. You need to do this before creating nodes of your new case type, otherwise you will have migration complexity. (See http://drupal.org/node/734542 to make that better.) **For compatibility with OpenAtrium's Atrium Casetracker feature, modify this variable withhook_strongarm_alter()
to avoid creating a feature that conflicts with Atrium Casetracker.If you have questions on this, please comment and I will update my answer to clarify further.