Hi all,
I've been looking in the community to find the solution but I couldn't, every problem that I saw in threads had the same answer: look into helpx documents, but they're not the solution they are just tutorials and I followed them, still not working. It working on html but when I wanted to edit the values dialog opens in empty shape. I'm sharing my dialog's content.xml. Should I implement an editconfig dialog?
Best regards,
Ogün Adsay.
<?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="cq:Dialog"
jcr:title="User Menu"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="cq:WidgetCollection"
sling:resourceType="granite/ui/components/foundation/container">
<layout
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/layouts/tabs"
type="nav"/>
<items jcr:primaryType="cq:WidgetCollection">
<tabs
jcr:primaryType="cq:WidgetCollection"
jcr:title="General"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="cq:Widget">
<usersubmenu
jcr:primaryType="cq:WidgetCollection"
jcr:title="User Submenu"
sling:resourceType="granite/ui/components/foundation/section">
<layout
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
<items jcr:primaryType="cq:WidgetCollection">
<tab
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<usersubmenudetails
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
class="full-width"
fieldDescription="Click 'Add field' to add a new User Submenu title and links"
fieldLabel="User Submenu Items">
<field
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
acs-commons-nested=""
name="./myUserSubmenu">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
method="absolute"/>
<items jcr:primaryType="cq:Widget">
<column
jcr:primaryType="cq:WidgetCollection"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldDescription="Enter User Submenu title"
fieldLabel="User Submenu Title"
name="./title"/>
<link
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldDescription="Enter User Submenu Link"
fieldLabel="User Submenu Link"
name="./link"
rootPath="/content"/>
<flag
jcr:primaryType="cq:Widget"
sling:resourceType="granite/ui/components/foundation/form/checkbox"
checked="{Boolean}false"
fieldDescription="Testing Flag for checkbox"
name="./flag"
text="Flag"
title="Checkbox Tooltip"/>
</items>
</column>
</items>
</field>
</usersubmenudetails>
</items>
</tab>
</items>
</usersubmenu>
</items>
</tabs>
</items>
</content>
</jcr:root>
Solved! Go to Solution.
Views
Replies
Total Likes
Ok, honestly I didn't watch the video but I found a component example which is working with multifields. I have used this document: Building Experience Manager Components using Granite/Coral Resource Types and downloaded ready to use component: https://helpx.adobe.com/content/dam/help/en/experience-manager/using/aem64_coral_resourcetypes/_jcr_...
I'm currently working on extending it for my purposes.
Thanks all!
Views
Replies
Total Likes
For AEM 6.3 - you should look at using granite/coral multifield.
Views
Replies
Total Likes
Check this, you will get the XML for all coral fields and it contains xml for multifield
http://keysandstrokes.info/aem-6-3-granite-ui-coral-3-components/
seems you are mixing touch UI and class UI dialog nodes.
please check https://helpx.adobe.com/experience-manager/using/multifield_aem63.html
Maybe the depth of the JSON tree exposed by the sling Get Servlet is limited. check the below link for verifying that.
aem - cq5 not returning child pages json data on '...infinity.json' request - Stack Overflow
Seems no better way to show you that a granite/ui/components/coral/foundation/form/multifield works then in a video.
We recommend in 6.3/6.4 that you use granite/ui/components/coral/foundation/form/multifield.
Building Experience Manager Components using Granite/Coral Resource Types
When working with granite/coral - the mf data is stored as nodes under the page.
There is no need to worry about JSON, loading ACS-COMMONS, or other issues that were presents with granite Multifields (as opposed to granite/coral multifields)
Thanks all for the responses. I saw ACS Commons a couple of times, but I couldn't understand what it is. Is it sometehing like a framework or library? How do I install/use it?
Views
Replies
Total Likes
WHy not switch to the latest granite types as shown in the video?
Views
Replies
Total Likes
Ok, honestly I didn't watch the video but I found a component example which is working with multifields. I have used this document: Building Experience Manager Components using Granite/Coral Resource Types and downloaded ready to use component: https://helpx.adobe.com/content/dam/help/en/experience-manager/using/aem64_coral_resourcetypes/_jcr_...
I'm currently working on extending it for my purposes.
Thanks all!
Views
Replies
Total Likes
For that article - go through all of it for best experience. Then in MF section - you just need to update dialgo and change Java logic - it all works