使用Brackes

时间:2016-02-25 13:14:49

标签: cq5 aem adobe-brackets

我使用带有AEM Brackets Extension的Adobe Brackets编辑CQ组件,但在编辑 dialog.xml 并使用AEM Brackets Extension导出后,更改不会出现在CRXDE。

我的工作流程是:

  1. 使用CRXDE创建对话框并保存;
  2. 使用AEM Brackets Extension导入CRXDE数据;
  3. 使用Brackets编辑导入的dialog.xml;
  4. 将dialog.xml导出回CRXDE。
  5. 这是我编辑过的dialog.xml:

    <?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:Dialog"
        title="dialog"
        xtype="dialog">
        <items
            jcr:primaryType="cq:Widget"
            xtype="tabpanel">
            <items jcr:primaryType="cq:WidgetCollection">
                <tab1
                    jcr:primaryType="cq:Panel"
                    title="Tab 1">
                    <items jcr:primaryType="cq:WidgetCollection">
                        <title
                            jcr:primaryType="cq:Widget"
                            fieldLabel="Enter title here"
                            name="./title"
                            xtype="textfield"/>
                        <text
                            jcr:primaryType="cq:Widget"
                            fieldLabel="Enter text here"
                            name="./text"
                            xtype="textarea"/>
                        <columns
                            jcr:primaryType="cq:Widget"
                            fieldLabel="Enter number of columns here"
                            name="./columns"
                            xtype="textfield"/>
                    </items>
                </tab1>
            </items>
        </items>
    </jcr:root>
    

    我使用括号添加的唯一内容是这些行:

                    <columns
                        jcr:primaryType="cq:Widget"
                        fieldLabel="Enter number of columns here"
                        name="./columns"
                        xtype="textfield"/>
    

    dialog.xml 是否应该通过Brackets从CRXDE上的路径同步(apps / learning / components / UserCardInfo / dialog.xml) 与此网址http://localhost:4502/apps/learning/components/UserCardInfo/dialog.xml返回的内容相同吗?

    这是Brackets的dialog.xml同步:

    <?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:Dialog"
        title="dialog"
        xtype="dialog">
        <items jcr:primaryType="cq:WidgetCollection">
            <username
                jcr:primaryType="cq:Widget"
                name="./userName"
                textLabel="Name"
                xtype="textfield"/>
        </items>
    </jcr:root>
    

    这是我用URL看到的dialog.xml:

    <dialog xmlns:MP="http://ns.microsoft.com/photo/1.2/" 
            xmlns:pdf="http://ns.adobe.com/pdf/1.3/" 
            xmlns:mix="http://www.jcp.org/jcr/mix/1.0" 
            xmlns:s7userdata="http://www.day.com/s7userdata/1.0/" 
            xmlns:jcr="http://www.jcp.org/jcr/1.0" 
            xmlns:DICOM="http://ns.adobe.com/DICOM/" 
            xmlns:xmpBJ="http://ns.adobe.com/xap/1.0/bj/" 
            xmlns:album="http://ns.adobe.com/album/1.0/" 
            xmlns:prismusagerights="http://prismstandard.org/namespaces/prismusagerights/2.1/" 
            xmlns:prl="http://prismstandard.org/namespaces/prl/2.1/" 
            xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/" 
            xmlns:exifEX="http://cipa.jp/exif/1.0/" 
            xmlns:dex="http://ns.optimasc.com/dex/1.0/" 
            xmlns:xmpNote="http://ns.adobe.com/xmp/note/" 
            xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" 
            xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" 
            xmlns:xmp="http://ns.adobe.com/xap/1.0/" 
            xmlns:idPriv="http://ns.adobe.com/xmp/InDesign/private" 
            xmlns:slingevent="http://sling.apache.org/jcr/event/1.0" 
            xmlns:scg="http://www.adobe.com/social/scg/1.0" 
            xmlns:lr="http://ns.adobe.com/lightroom/1.0/" 
            xmlns:sv="http://www.jcp.org/jcr/sv/1.0" 
            xmlns:oauth="http://oauth.net/" 
            xmlns:cq="http://www.day.com/jcr/cq/1.0" 
            xmlns:stFNT="http://ns.adobe.com/xap/1.0/sType/Font#" 
            xmlns:tiff="http://ns.adobe.com/tiff/1.0/" 
            xmlns:stMfs="http://ns.adobe.com/xap/1.0/sType/ManifestItem#" 
            xmlns:rep="internal" 
            xmlns:prism="http://prismstandard.org/namespaces/basic/2.1/" 
            xmlns:plus="http://ns.useplus.org/ldf/xmp/1.0/" 
            xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" 
            xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" 
            xmlns:psAux="http://ns.adobe.com/exif/1.0/aux/" 
            xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/" 
            xmlns:social="http://www.adobe.com/social/1.0" 
            xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" 
            xmlns:dc="http://purl.org/dc/elements/1.1/" 
            xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/" 
            xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" 
            xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/" 
            xmlns:s7sitecatalyst="http://www.day.com/s7sitecatalyst/1.0/" 
            xmlns:exif="http://ns.adobe.com/exif/1.0/" 
            xmlns:adobe_dam="http://www.adobe.com/adobe_dam/1.0" 
            xmlns:granite="http://www.adobe.com/jcr/granite/1.0" 
            xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/" 
            xmlns:cc="http://creativecommons.org/ns#" 
            xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" 
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
            xmlns:xmpPLUS="http://ns.adobe.com/xap/1.0/PLUS/" 
            xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" 
            xmlns:vlt="http://www.day.com/jcr/vault/1.0" 
            xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0" 
            xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/" 
            xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/" 
            xmlns:dam="http://www.day.com/dam/1.0" 
            xmlns:viewerpreset="http://www.day.com/viewerpreset/1.0/" 
            xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 
            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" 
            xmlns:nt="http://www.jcp.org/jcr/nt/1.0" 
            xmlns:crx="http://www.day.com/crx/1.0" jcr:primaryType="cq:Dialog" title="dialog" xtype="dialog">
        <items jcr:primaryType="cq:WidgetCollection">
            <username jcr:primaryType="cq:Widget" name="./userName" textLabel="Name" xtype="textfield" />
        </items>
    </dialog>
    

    版本:

    AEM - 6.1

    Brackets - 版本1.6 build 1.6.0-16680

    AEM Brackets Extension - 0.0.13

0 个答案:

没有答案