Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Content Fragment Models - Customization and Intelligence

Avatar

Level 4

We have Content Fragment Models which are used to create content. This then is exposed as JSON to UI layer. Some Models are shared across many components. We have some fields which are text-fields (though those are not Content Author friendly), we plan to change them to dropdown. But as model is shared across many components, it would be required to have all the values as part of dropdown.

We were looking for setting default value based on component, restrict number of values based on components. If there are any suggestions or pointers for this, any inputs or viewpoint or alternate suggestions would also help.

Thank you

Sandeep

1 Reply

Avatar

Community Advisor

You can write a utility to look for all the possible value which you set as a text filed and collect those and set in enumeration options.

and keep property name for dropdown as same as text.



Arun Patidar