Expand my Community achievements bar.

Content Fragment Limitations, Autocomplete, ColorField, and Select not Rendered

Avatar

Level 1

I'm just looking to confirm something I'm running into here. 

I'm setting up a Content Fragment using Granite dialog fields we've used elsewhere through our AEM instance. 

We have an Icon Picker which is an instance of granite/ui/components/coral/foundation/form/autocomplete
We have a Color Picker which is an instance of 
granite/ui/components/coral/foundation/form/colorfield
We have a Select which is an instance of 
granite/ui/components/coral/foundation/form/select

When I deploy my code, I see my model in CRX with all fields but these three fields don't appear when I create a fragment or when I look at the model editor. 

Additionally we have a checkbox and several fields use scs-show-when in granite:data to try and show/hide those fields, it seems to have no effect on the fields. 

Do Content Fragments not support these features? Since it's all Granite UI I was hoping they would but maybe I'm wrong. 

I don't see any errors in the borwser or in my AEM logs so I'm at a loss for what else might be going on. 

Topics

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

3 Replies

Avatar

Level 1

I've tried following along with that, everything looks equal, however when I open the Content Fragment Model Editor and add the new Color Picker there are no properties available for it.


Saw in the github issues for the download that the new item node needs to be color-field rather than color-picker. There's also a fieldMetaTypes attribute which is set to color-field. Works now.

NarwhalAoibhe_0-1731410515052.png

NarwhalAoibhe_1-1731410546841.png

 

Avatar

Level 1

Color-field works fine but if I try to add a node now for autocomplete it breaks the Content Fragment Model Editor. Trying to identify something in the logs for a hint on what needs to be fixed but if you've got any ideas that would be great.