Published on

What is “CQ`:` Listeners”?

Authors

What is “CQ: Listeners”?

“CQ:Listeners” node defines what happens before or after an action on the component. It can have the following properties:

There is a way to have the page automatically refresh when a change is made to the component. This can be accomplished by using the “cq:listeners” node that is the following type: “cq:EditListenersConfig”. This node type is used when you want the page to refresh whenever a certain action is done to the component.

Some of the properties that the node can have are:

  • beforeedit
  • beforecopy
  • afteredit
  • aftermove
  • afterdelete

In order to use this node you need to create a “cq:editConfig” node under your component, and then add the “cq:EditListenersConfig” node as a child of the “cq:editConfig” node.