Adobe Experience Manager(AEM)(CQ5)中的开箱即用(OOTB)页面属性对话框提供了"图像"选项卡.我想在对话框中添加更多图像,但我不想为每个图像创建单独的选项卡.
例如,有没有办法在对话框中的"高级"选项卡上包含图像?我试过这个,但它似乎没有正确呈现.
我正在考虑的一件事是扩展幻灯片xtype,每个图像将是一个单独的"幻灯片"
有更好的方法吗?
Tua*_*uan 10
这可能有多个smartimage选项卡上xtypes!
用于smartimage的 Widgets API文档:
请注意,该组件主要设计用于单独的对话框选项卡.如果您提供合适的高度设置,则可以选择在CQ.Ext.layout.FormLayout中使用该组件.
这是对话框的代码:
<?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"
height="{Long}600"
title="dialog"
xtype="dialog">
<items
jcr:primaryType="cq:Widget"
xtype="tabpanel">
<items jcr:primaryType="cq:WidgetCollection">
<panel
jcr:primaryType="cq:Panel"
title="Panel with two Images">
<items jcr:primaryType="cq:WidgetCollection">
<firstimage
jcr:primaryType="cq:Widget"
cropParameter="./firstimage/imageCrop"
ddGroups="[media]"
fieldLabel="first image field"
fileNameParameter="./firstimage/fileName"
fileReferenceParameter="./firstimage/fileReference"
height="{Long}200"
name="./firstimage/file"
rotateParameter="./firstimage/imageRotate"
title="First Image"
width="{Long}200"
xtype="html5smartimage"/>
<secondimage
jcr:primaryType="cq:Widget"
cropParameter="./secondimage/imageCrop"
ddGroups="[media]"
fieldLabel="second image field"
fileNameParameter="./secondimage/fileName"
fileReferenceParameter="./secondimage/fileReference"
height="{Long}200"
name="./secondimage/file"
rotateParameter="./secondimage/imageRotate"
title="secondimage"
width="{Long}200"
xtype="html5smartimage"/>
</items>
</panel>
</items>
</items>
</jcr:root>
Run Code Online (Sandbox Code Playgroud)
以下是结果:
