drupal 6:创建自定义模块并重新发明轮子?
我的 Drupal 网站的基本工作流程是这样的:
- 用户通过 Drupal 网站提交文章,
- 网站管理员批准该文章,并且需要将这篇文章与即将举行的委员会成员审查会议相关联
- 审查委员会会议召开,并显示与会议日期相关的所有文章并可供审查委员会成员审查。
- 评审委员会只能发表一条评论,而网站管理员可以无限次回复他们的评论。
- 然后,审查委员会投票决定批准/不批准该文章。
- 如果获得批准,站点管理员将发布该文章并将其显示在公共互联网上。
到目前为止,我正在通过 Drupal API 创建自定义模块和自定义表单来完成所有工作,一切进展顺利。例如,我正在编写自己的评论功能、关键字功能、投票功能等...但现在我担心的是我没有利用 Drupal 的功能,例如分类、搜索、关键字等...此外,我看到现有的模块可以完成我正在创建的一些事情。我是否做错了并重新发明轮子?我对 PHP 比较了解,所以我会使用我熟悉的内容。
The basic workflow of my Drupal site is this:
- User submits article via the Drupal website
- site admin approves the article AND needs to associate this article to an upcoming review meeting for committee members
- Review committee meeting happens and all articles associated with the meeting date is displayed and visible to the reviewing committee members to review.
- Review committee can only leave ONE comment, while site admin can reply to their comments infinite times.
- Review committee then votes to approve/not approve the article
- If approved, site admin publishes the article and it is displayed to the public internet.
So far I am doing everything by creating my custom modules and custom forms via the Drupal API, and it's coming along fine. For example, I am writing my own comment features, keywords feature, voting feature, etc... But now my concerns are that I am not leveraging Drupal abilities such as taxonomy, search, keywords, etc... In addition, I see that there are existing modules that can do some of the stuff I am creating. Am I doing this wrong and reinventing the wheel? I am more PHP savvy so I am going with what I am familiar with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上我创建了一个新的节点类型。我想,原因是我能够利用 Drupal 的引用节点机制。如果我只是创建表单并将它们独立存储在表中,那么它就达不到目的了。
另外,我放弃了 Drupal 6,转而使用 Drupal 7。
Basically I went with creating a new node type. The reason, I figured, is that I would be able to leverage Drupal's mechanisms of referencing nodes. If I just create forms and store them independently in tables, then it kind of defeats the purpose.
Also, I dropped Drupal 6 and went with Drupal 7.