AEM 6.2-触摸式用户界面/花岗岩用户界面,只有一个输入字段´;行不通
如果我正在构建一个只有一个输入字段的对话框,那么该对话框将不会显示在作者中 下面是我的示例代码(headline_dialog.xml):AEM 6.2-触摸式用户界面/花岗岩用户界面,只有一个输入字段´;行不通,aem,aem-6,Aem,Aem 6,如果我正在构建一个只有一个输入字段的对话框,那么该对话框将不会显示在作者中 下面是我的示例代码(headline_dialog.xml): 这是我们将在作者身上看到的: <?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="h
这是我们将在作者身上看到的:
<?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"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<text
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textarea"
fieldLabel="Überschrift Text"
name="./text"
fieldDescription="Bitte pflegen Sie hier den Textinhalt Ihrer Überschrift."/>
<example
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Dummy"
name="./example"
value="exampletext"
disabled="true"
fieldDescription="Dummy Text"/>
</items>
</column>
</items>
</content>
</jcr:root>
如果我现在向对话框添加第二个输入字段。该对话框将显示在“作者”对话框中:
<?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"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<text
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textarea"
fieldLabel="Überschrift Text"
name="./text"
fieldDescription="Bitte pflegen Sie hier den Textinhalt Ihrer Überschrift."/>
<example
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Dummy"
name="./example"
value="exampletext"
disabled="true"
fieldDescription="Dummy Text"/>
</items>
</column>
</items>
</content>
</jcr:root>
现在我们可以正确地看到该对话框:
这是新touch UI中的一个bug吗?还是我在第一个对话框XML文件中出错了?您是否通过crx/de正确地看到了对话框下第一个XML的节点结构?是的,我可以在crx中的“/apps/…”下看到它。include与所有其他对话框完全相同。能否从XML中删除非ASCII字符:
Überschrift Text