在不激活CQ5中的页面的情况下启动页面激活工作流程 [英] Start a workflow on page activation without activating the page in CQ5

查看:97
本文介绍了在不激活CQ5中的页面的情况下启动页面激活工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当内容作者单击页面上的激活时,我都需要调用工作流程。然后,工作流将向管理员发送通知,然后管理员继续激活页面。

I would need to call a workflow whenever a content author clicks activate on a page. The workflow would then send a notification to the administrator, who then proceeds to activate the page.

让我更详细地解释一下。

Let me explain this with some more detail. There are 2 parts to this

i)有两部分。i)只要内容作者完成了页面的修改,他就将继续单击 激活页面。从站点管理员的同伴或页面属性中选择。这样,他不是立即激活页面而是调用工作流程。

i) Whenever a content author is done modifying a page, he would then proceed to click "Activate Page" from either the sidekick or from page properties on the siteadmin. By doing so, he is not activating the page straight away but calling a workflow.

ii)工作流程将向管理员发送通知,然后管理员决定激活这一页。这一点是很普通的,所以这里没有问题。

ii) The workflow will send out a notification to the admin, who then decides to activate the page. This bit is fairly ordinary, so no issues here.

所有这些都是为了确保没有任何内容被发布/激活,除非得到管理员的审查。

All of this is an effort to make sure that there is nothing published/activated unless it has been reviewed by an admin.

我尝试设置一个可以调用工作流的ReplicationEvent侦听器。发生的情况是在调用工作流之前 页面已被激活; ReplicationEvent 的发生仅在上述复制事件(即激活)发生之后(很明显!)。

I tried setting up a ReplicationEvent listener that would call a workflow. What happens is that the page is already activated before the workflow is called; the occurrence of a ReplicationEvent is only after said Replication Event (i.e Activate) occurs (Obviously!).

如上所述,我需要确保当用户单击激活时,该页面并未真正激活;这意味着我需要修改激活按钮的功能。

As stated, I need to make sure that the page isn't actually activated when the user clicks activate; which means I need to modify what the activate button does exactly.

我尝试在线查找,但一无所获,这使我相信CQ5的大部分siteadmin代码对我们都是隐藏的,无法修改(并且有充分的理由) )。

I have tried looking up online, but found nothing, which leads me to believe that most of CQ5's siteadmin code is hidden from us and cannot be modified (and with good reason).

那么还有没有其他人可以想到的东西可以帮助我达到我的要求?还是我应该放弃这个作为失败的事业?

So is there anything else that anyone can think of which may help me to achieve my requirement? Or should I give this up as a lost cause?

在此先对长篇文章表示歉意

Thanks in advance and apologies for the long post

推荐答案

您可能会将作者置于没有复制权限的用户组中。当作者尝试在没有权限的情况下激活页面时,它会自动启动激活请求工作流程。我认为默认配置有一个用于内容批准的步骤,一个用于激活的单独步骤。这两个步骤都映射到管理员用户组。工作流位于 http:// localhost:4502 / libs / cq / workflow / content / console.html ,您可以双击模型进行编辑。

You could put the authors in a user group that does not have replication permissions. When an author tries to activate a page without the permissions, it automatically starts the request for activation workflow. I think the default config has one step for content approval and a separate step for activation. Both steps are mapped to the administrator user group. The workflows are at http://localhost:4502/libs/cq/workflow/content/console.html and you can double click on a model to edit it.

这篇关于在不激活CQ5中的页面的情况下启动页面激活工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆