当前位置: 动力学知识库 > 问答 > 编程问答 >

cq5 - How to create a custom multifield for touch UI in CQ(AEM6)?

问题描述:

I already have a custom multifield in a component which works in classic UI(sidekick ) . However when i switch to touch UI mode, the custom multifield doesn't work. The dialog doesnt show anything, no "+" button to add the fields which I had designed in my custom multifield. Also, the dialog converter is unable to convert this custom multifield to the corresponding version for the touch UI.

Any ideas on how create a custom multifield in touch UI?

网友答案:

The syntax of a multifield in Coral UI looks as follows:

<mymultifield
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/foundation/form/multifield"
    fieldLabel="My multifield">
    <field
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/form/textfield"
        name="./mymultifield" />
</mymultifield>
网友答案:

You need to convert your dialog to cq:dialog following the documentation. Then you will be able to see you multifield component in touch ui. http://docs.adobe.com/docs/en/aem/6-0/develop/dev-tools/dialog-conversion.html

网友答案:

I'm not sure what you mean by custom multifield, but if you mean a multifield of custom widgets, one thing you need to do is make sure your widget is part of the correct clientlib. I believe it's cq.widgets.

分享给朋友:
您可能感兴趣的文章:
随机阅读: