从 drupal 到 web2py:分类/标记和注释?

发布于 2024-12-03 10:06:57 字数 445 浏览 2 评论 0原文

我有一些使用 Drupal 实现的网站。然而,尽管 Drupal 很酷,但我从未对它的编码感到满意,主要是因为它是用 PHP 编写的,而我想使用 python。我对 Django 很感兴趣,但我最近才发现 web2py,它确实引起了我的注意。看起来这可能是 Drupal 和 Django 之间的最佳结合点。虽然 django-cms 也在我的关注范围内。

所以现在我想知道如何使用 web2py 重新实现我的网站。具体来说,假设我有一个关于 DVD 播放器的网站。因此,在 Drupal 中,我有一个 CCK 类型的 DVD 播放器,具有各种属性。我想这对应于 web2py 模型。我将如何实现像 Drupal 的分类法这样的东西,就像 web2py 中的标签系统?有相应的模块/插件/设备吗?或者我是否手动创建模型架构来处理标记?

其次,您将如何处理帖子中的评论和/或评论等内容?再说一遍,是否有为此预先构建的插件,或者我是否有自己的插件?

I have some sites that I implemented using Drupal. However as cool as Drupal is I've never been satisfied with coding in it mostly because it's in PHP and I've wanted to work with python. I've flirted with Django but I just recently discovered web2py and it's definitely caught my eye. Seems like it may be a sweet spot between Drupal and Django. Although django-cms is also on my radar.

So now I'm wondering how to re-implement my sites with web2py. Specifically suppose I have a site about DVD players. So in Drupal I'd have a CCK type DVD player, with various attributes. I guess this would correspond to a web2py model. How would I implement something like Drupal's taxonomy which is like a tagging system in web2py? Is there a module/plugin/appliance for that? Or am I manually creating the model schema to handle tagging?

Secondly, how would you handle something like comments and/or reviews on posts? Again, is there a pre-built plugin for this or do I have roll my own?

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

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

发布评论

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

评论(1

你又不是我 2024-12-10 10:06:57

对于标记,我认为 web2py 没有类似 Drupal Taxonomy 模块的东西,但有一些选项。首先,您可以创建自己的多对多模型为项目分配标签。另一个更简单的选择是使用 web2py 的 list:reference 字段类型来非规范化多对多关系(本书该部分的末尾包含一个标记示例)。

对于现有的标记解决方案,您还可以查看 web2py 的 plugin_wiki,其中包含 < a href="http://web2py.com/book/default/chapter/13#Current-Widgets" rel="nofollow">标签小部件。您可以从下载页面获取它,或者拉取源代码。另一个选项是 Powerpack,其中包括 Instant Press CMS,其中包括标记和类别功能。

此外,plugin_wiki 和 Powerpack 都包含评论插件。

最后,您通常会在 web2py 邮件列表

For tagging, I don't think web2py has anything quite like the Drupal Taxonomy module, but there are some options. First, you could create your own many-to-many model to assign tags to items. Another simpler option is to use web2py's list:reference field type to de-normalize the many-to-many relationship (the end of that section in the book includes a tagging example).

For existing tagging solutions, you can also check out web2py's plugin_wiki, which includes a tag widget. You can get it from the download page, or pull the source code directly. Another option is Powerpack, which includes the Instant Press CMS, which includes tagging and categories functionality.

Also, both plugin_wiki and Powerpack include comment plugins.

Finally, you'll generally get more and quicker responses from knowledgeable web2py users on the web2py mailing list.

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