I will need to invoke the workflow whenever the content author clicks on the page. The workflow then sends a notification to the administrator, who then activates the page.
Let me explain this in more detail. There are 2 parts for this.
i) Whenever the content author modifies the page, he then goes to “ Activate page ” either from the sidekick attribute or from the page properties on the siteadmin site. However, it does not activate the page immediately, but calls up the workflow.
ii) The workflow will send a notification to the administrator, who then decides to activate the page. This bit is pretty ordinary, so there is no problem here.
All this is an attempt to make sure that nothing is published / activated if it has not been viewed by the administrator.
I tried setting up a ReplicationEvent listener that would invoke the workflow. It happens that the page is already activated before the workflow is called; ReplicationEvent occurs only after the Replication event (for example, Activate) has occurred (obviously!).
As indicated, I need to make sure that the page is not activated when the user clicks the activation button; which means that I need to change what the activation button does.
I tried to find online, but did not find anything, which made me believe that most of the CQ5 site code is hidden from us and cannot be changed (and not without reason).
So is there anything else anyone can think of that can help me achieve my requirement? Or should I give it back as a lost cause?
Thanks in advance and apologize for the long post
adobe cq5
bongman1612
source share