Skip to content

Instantly share code, notes, and snippets.

@salomao-santos
Last active December 10, 2024 12:53
Show Gist options
  • Save salomao-santos/cd72975e95b89bf906e2470b0989050c to your computer and use it in GitHub Desktop.
Save salomao-santos/cd72975e95b89bf906e2470b0989050c to your computer and use it in GitHub Desktop.
AEM Component: Edit Config (_cq_editConfig.xml), _cq_editConfig.content.xml

AEM Component: Edit Config Sample

Description

EN: The _cq_editConfig.xml file to dictates actions (refesh, edit, copy, move, delete, etc.) during the component drag and drop behavior in the AEM authoring UI.

PT-BR: O arquivo _cq_editConfig.xml determina ações (atualizar, editar, copiar, mover, excluir, etc.) durante o comportamento de arrastar e soltar do componente na interface de criação do AEM.

Component Edit Config - Index


References:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:EditConfig">
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afterchildinsert="REFRESH_SELF"
afterchilddelete="REFRESH_SELF"/>
</jcr:root>
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:emptyText="Social Media Sharing"
jcr:primaryType="cq:EditConfig">
<cq:listeners
afterinsert="REFRESH_PAGE"
jcr:primaryType="nt:unstructured"/>
</jcr:root>
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:EditConfig">
<cq:listeners
jcr:primaryType="nt:unstructured"
afteredit="REFRESH_PAGE"
afterinsert="REFRESH_PAGE"/>
</jcr:root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment