AEM6.4 - How to create a component with images in different tabs and also which should behave adaptive?
Hi I need to create a custom component like Billboard which will have Textfiield, RichText pathfield and most importantly images in different tabs in Coral UI.
For example:
Tab1-
Textfiield , adaptive image,Richtext
Tab2
Textfiield, adaptive image1, adaptive Image2
Tab3
Textfiield , adaptiveImage1, adaptive Image2, RichText
This should be adaptive and behave as AEM 6.4 core v2 image component.
I have added the image field as below in the Dialog
<tab2
jcr:primaryType="nt:unstructured"
jcr:title="Tab2"
sling:resourceType="granite/ui/components/coral/foundation/container"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<menuItem
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Enter Main Menu Item Text"
fieldLabel="Menu Item"
name="./menuItemText"
required="{Boolean}true"/>
<file
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
mimeTypes="[image/gif,image/jpeg,image/png,image/webp,image/tiff]"
multiple="{Boolean}false"
name="./file"
title="Upload Image Asset"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>
</items>
</columns>
</items>
</columns>
</items>
</tab2>