Como ativar o recurso de arrastar e soltar ativo no PathField

Após a atualização do Adobe Experience Manager 6.5.10, agora é possível arrastar e soltar ativos do navegador de ativos em um PathField no editor de páginas. Para habilitar este recurso, adicione a propriedade droppable ao nó de PathField.

Descrição description

Ambiente

Adobe Experience Manager

Problema/Sintomas

A partir do AEM 6.5.10, você pode arrastar e soltar um ativo do navegador de ativos em um PathField no editor de páginas. Este recurso corresponde à linha abaixo nas notas de versão do AEM 6.5.10:

O PathField no editor de sites permite que os autores arrastem ativos do Localizador de Conteúdo.

Este artigo explica como habilitar esse recurso.

Resolução resolution

Adicione a propriedade droppable ao nó de PathField.

name: droppable

  type: Boolean

  value: true

Exemplo de Personalização:

Um PathField com droppable=true, adicionado ao componente HelloWorld do tutorial WKND, como

/apps/wknd/components/helloworld/cq:dialog/content/items/column/items/path/@dropable={Boolean}true

<?xml version="1.0" encoding="UTF-8"?>
    <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 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="nt:unstructured"
        jcr:title="Properties"
        sling:resourceType="cq/gui/components/authoring/dialog">
        <content
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
            <items jcr:primaryType="nt:unstructured">
                <column
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/container">
                    <items jcr:primaryType="nt:unstructured">
                        <text
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                            fieldLabel="Text"
                            name="./text"/>
                        <path
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
                            fieldLabel="Path"
                            droppable="{Boolean}true"
                            name="./path"/>
                    </items>
                </column>
            </items>
        </content>
    </jcr:root>
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f