Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Dialog converter - Checkbox conversion

Avatar

Level 2

Hi

I am using the dialog converter tool 1.0 on AEM 6.0 SP3 for converting classic dialog checkbox into touch dialog checkbox. However the converted checkbox structure is different from classic.

Classic Structure:

<addbutton

     jcr:primaryType="cq:Widget"

     fieldLabel="Add Button"

     inputValue="true"

     name="./addbutton"

     type="checkbox"

     xtype="selection">

</addbutton>

Converted Touch UI Structure:

<addbutton

     jcr:primaryType="nt:unstructured"

     sling:resourceType="granite/ui/components/foundation/form/checkbox"

     name="./addbutton"

     text="Add Button"

     value="true"/>

<addbutton-delete

     jcr:primaryType="nt:unstructured"

     sling:resourceType="granite/ui/components/foundation/form/hidden"

     name="./addbutton@Delete"

     value="{Boolean}true"/>

I have searched for a rule at /libs/cq/dialogconversion/rules but cannot find any rule for checkbox.

Can anyone please help me understand how is the conversion being done ?

1 Accepted Solution

Avatar

Correct answer by
Employee

You can refer following doc for understanding the logic of dialog conversion :

https://docs.adobe.com/docs/en/aem/6-3/develop/dev-tools/dialog-conversion.html#Dialog Rewrite Rules

View solution in original post

3 Replies

Avatar

Employee

Hi Zeyn,

Are you getting Checkbox in Touch UI ? The structure and node type is going to be bit different in Touch ui cq:dialog than classic dialog  box.

Avatar

Level 2

Hi Abhishek,

Yes the checkbox is been generated in Touch UI. I wanted to know how it is generated as other components like textfield etc have rules but i couldnt find any rules for checkbox in the rules folder.

Avatar

Correct answer by
Employee

You can refer following doc for understanding the logic of dialog conversion :

https://docs.adobe.com/docs/en/aem/6-3/develop/dev-tools/dialog-conversion.html#Dialog Rewrite Rules