Django-cms 和编辑工作流程
我需要在工作中在 Django-CMS 应用程序中实现工作流程。但从 Django-CMS 功能列表中,我们可以看到:
编辑工作流程
发布和审批的工作流程。
我试图寻找它,但没有找到任何东西。我搜索了 Django-CMS 文档(http://docs.django-cms.org/en/latest/index.html),但也找不到任何内容。
有谁知道 Django-CMS 中的工作流程(特别是页面系统)?
I need to implement workflows in my Django-CMS application at work. But form the Django-CMS feature list, we can read:
Editorial workflow
Workflows for publishing and approval.
I tried to search for it and didn't find anything. I've search the Django-CMS documentation (http://docs.django-cms.org/en/latest/index.html) and couldn't find something there either.
Does anyone has a clue about Workflows in Django-CMS (especially for the pages system) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
2016 年更新:
django CMS 3 中还没有编辑工作流程
django CMS 3(截至今天的 v3.3.2)没有编辑工作流程。此功能在 2.3 版本中被删除,并被“简单发布”的概念所取代(内容的 2 个版本:草稿、公开)。阅读相关博文 来自 Divio 的动力。
对于 3.5 版本,计划通过插件提供一些扩展的审核支持,如 Angelo Dini 在 2012 年原始博客文章的当前评论中解释了。不要打赌不过,关于它。
控制编辑
如果您至少想要对编辑进行一些控制,例如“仅允许某些用户创建和编辑,但不能发布更改”,那么您很幸运。它的工作原理如下:
对编辑的控制遵循以下公式,它是三件事的组合:
前两个是简单的 Django 概念(来自 django.contrib.auth,请参阅 Django 文档),后者来自 来自 django CMS。这三个功能一起使用,原因如下:
IOW,可以将用户分成组并允许他们只执行一些特定的操作(仅编辑、仅发布等),但是用户通知(工作流实现的核心概念)在 django CMS v3 中不可用。 3.
编辑:请参阅“django 的编辑工作流程CMS”,位于 django CMS 开发人员 G+ 组,了解详细信息和相关实现的演示。
An update for 2016:
No Editorial Workflow in django CMS 3 (yet)
django CMS 3 (v3.3.2 as of today) has no editorial workflow. This feature was removed in version 2.3, and replaced by the concept of "simple publishing" (2 versions of content: draft, public). Read the related blog post from Divio for their motivation.
For version 3.5 there is some extended moderation support planned via an addon, as explained by Angelo Dini in a current comment on the original blog post from 2012. Don't bet on it, though.
Control over Editing
If what you want is, at least, some control over editing, e.g. "some users are allowed to create and edit only but can't publish changes", then you're in luck. It works as follows:
Control over editing goes with the following formula, it's a combination of 3 things:
The first two are plain Django concepts (from
django.contrib.auth
, see the Django docs) and the latter comes from django CMS. All 3 play together, here's why:IOW, it's possible to split your users into groups and allow them to do just some specific things (editing only, publishing only, etc.), but the user notifications, a central concept to workflow implementions, are not available in django CMS v3.3.
EDIT: See "Editorial workflow for django CMS" in the django CMS developers G+ group for details and a demo of a related implementation.
当您在 Django-CMS 中打开 CMS_MODERATION 时,您将在页面列表视图中每个页面旁边看到三个图标。从左到右,这些控制
当您创建或更改页面时,您将能够保存并在您的网站上预览该页面或该页面的新版本,但在该页面或该页面的新版本对最终用户可见之前,需要版主批准。
When you turn on CMS_MODERATION in Django-CMS, you will get three icons next to each page in the page list view. From left to right, these control
When you create or change a page, you will be able to save it, and preview the page or new version of the page on your site, but it will require moderator approval before the page or new version of the page is visible to end users.