Expand my Community achievements bar.

Issue while fields into Adobe Experience Manager UI for asset metadata

Avatar

Level 2

Hello team, hope you are fine.

I would like to know if you can assist me on understanding what could be the issue I introduced.

Here is the timeline of facts

  • I added 5 fields in the UI on the metadata screen of the fields.
    • One of the fields I added was a multivalue fields
    • I fixed (I think) as it was wrongly configured (I am sharing the code before I fixed the multivalue field in order to see if that is related to my code)
  • I merged the changes in dev and that caused the attached outcome (fields in the metadata schema validator in only one column and when editing metadata for a random asset, it becomes grey

 

Here are two fields I added as example:

<_x0031_678945703793
        jcr:primaryType="nt:unstructured"
        sling:resourceType="dam/gui/components/admin/schemafield"
        fieldLabel="Alt text (from GDrive)"
        name="./jcr:content/metadata/indd:altText"
        resourceType="granite/ui/components/coral/foundation/form/multifield">
    <granite:data
            jcr:primaryType="nt:unstructured"
            cq-msm-lockable="./metadata/indd:altText"
            metaType="text"
            requiredCascading="always"
            visibilityCascading="default"/>
</_x0031_678945703793>

<_x0031_678945703794
        jcr:primaryType="nt:unstructured"
        sling:resourceType="dam/gui/components/admin/schemafield"
        emptyText="Select Option"
        fieldLabel="Asset Source"
        jsonPath="/conf/indi/dam/metadata-schema/options-json/assetSource.json"
        name="./jcr:content/metadata/indd:assetSource"
        resourceType="dam/gui/coral/components/admin/schemaforms/formbuilder/formfields/v2/metadataselect">
    <granite:data
            jcr:primaryType="nt:unstructured"
            cq-msm-lockable="./metadata/indd:assetSource"
            metaType="dropdown"
            requiredCascading="always"/>
    <items jcr:primaryType="nt:unstructured"/>
</_x0031_678945703794>

 

This piece of code is in the following file: ui.content/src/main/content/jcr_root/conf/global/settings/dam/adminui-extension/metadataschema/indi/.content.xml

 

Here is the other piece of code I added:

<altText
    jcr:primaryType="nt:unstructured"
    name="jcr:content/indd:altText"
propertyIndex="{Boolean}true"/>
<assetSource
    jcr:primaryType="nt:unstructured"
    name="jcr:content/indd:assetSource"
propertyIndex="{Boolean}true"/>

 

This change was introduced on the following file: ui.apps/src/main/content/jcr_root/_oak_index/.content.xml

 

Would it be possible for you to help me understand what I have done wrong?

 

Thanks a lot.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

Hi @NicolasSo 

 

There could be multiple things going on here, few things that I noticed are -

Hope this helps! 

 

Thanks

Narendra

Avatar

Level 2

Hi @narendragandhi I was able to troubleshoot the issue and here are the two responsables:

  • The black screen was due a misconfiguration on the multifield value text 
  • The fields one behind the other was due the fields being added into the col1 element in the xml

Thanks.

Avatar

Administrator

@NicolasSo Did you find the suggestion helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni