I would like to better understand the intended use for customizing the default metadataschema to add additional out-of-the-box Standard Tags form fields. I have been doing some testing with it and am confused by the results I see:
I’ve customized the default metadata schema by adding a Standard Tags field to it. This new field maps to a custom property (for instance: ./jcr:content/metadata/myTags). After doing this, the out-of-the-box Tags field no longer works properly:
It doesn’t display all the that were previously saved to cq:tags
It’s no longer a tag picker field (see 2 screenshots following)
2. The out-of-the-box Tag References feature doesn't seem to work for tags saved in custom properties. For instance, in the screenshots below, I've saved the "Grayscale" tag to the custom property "myTags". Yet, there is no reference displayed for it in the Tags UI:
3. Upon saving after authoring the "myTags" field above, 1 of the tags I had previously authored in cq:tags is deleted:
4. Just curious, why is the out-of-the-box Tags field a Text field? I had expected it to be a tagfield:
So, to summarize my questions:
What is the intended use for adding a Standard Tags field to a DAM metadataschema?
If I add a Standard Tags field to the form can I map it to a custom property?
Is it expected that I could add one (or more) and retain the out-of-the-box field that maps to cq:tags?
Why is the out-of-the-box "Tags" field a Text Field?
First of all I just want to say: kudos for the question. Lots of details and screenshot, interesting subject: i give it a solid 9/10
I think you might be onto something here, looks like a bug Can I just ask what version of AEM you're on?
I just tested on a 6.5.1 and I can confirm that the OOTB Tags field is (inexplicably) a Text Field. Furthermore, it does not display multiple tags correctly:
I think it's time for a ticket to DayCare support for a fix
That being said, I literally just wrote a tutorial on the subject of metadata schema forms here. You can use the inheritance principle of metadata schemas to re-implement the default schema, and substitute the OOTB (Text) Tags field by a Standard or Smart Tags field, mapped to the same JCR node property (cq:tags). Hope that helps!