Expand my Community achievements bar.

SOLVED

multi-multifield in asset metadata schema

Avatar

Level 4

Hi guys,

Has anyone tried to input/display asset metadata that looks like this (in xml):

<parent>

    <child>

        <text>value1</text>

        <text>value2</text>

    </child>

    <child2>

        <text>value3></text>

    </child2>

</parent>

I'm currently having to sandwich all these values into string arrays, not only for display but also for the asset search to work. Example:

parent="[child: value1\,value2, child2: value3]"

The display doesn't look very nice on the metadata schema but at least the search predicates work when pointed to "parent". 

Is there a better way of displaying this and have the search predicates work on it as well?

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi smacdonald2008,

There is no documentation on how to handle multi-multifield values in the Adobe's online documentation. The available documentation states how to handle single-field values and single-multifield values.

I came up with this work around while looking at:

https://docs.adobe.com/docs/en/aem/6-1/develop/search/querybuilder-api.html

https://docs.adobe.com/docs/en/aem/6-1/administer/content/assets/metadata-schemas.html

Thanks : )

View solution in original post

2 Replies

Avatar

Level 10

Please reference the online docs you are following to perform this use case. 

Avatar

Correct answer by
Level 4

Hi smacdonald2008,

There is no documentation on how to handle multi-multifield values in the Adobe's online documentation. The available documentation states how to handle single-field values and single-multifield values.

I came up with this work around while looking at:

https://docs.adobe.com/docs/en/aem/6-1/develop/search/querybuilder-api.html

https://docs.adobe.com/docs/en/aem/6-1/administer/content/assets/metadata-schemas.html

Thanks : )