Assume I have a schema that contains a list of links, let's call it a link farm schema.

These links are embedded schemas with a label field and a URL field. Assume that I want the label field of the link embedded schema to have a default value, but this default value only applies to the link farm schema.

I do not want these default values to apply at the embedded schema level. Is there a way to do this?

  • 3
    GUI extension that runs in Component GUI, detects the link farm schema and only then sets the value of your label field within the embedded schema?
    – Neil
    Commented Aug 24, 2018 at 7:06

1 Answer 1


Content Types in Experience Manager would be one way to create this kind of default content values. This is where you can create one or more Custom Content Types that set default details for new content created in Experience Manager at a given Publication.

If the product were to add these kinds of flexible defaults it'd likely rely on Content Types and the Event System alongside any GUI changes. If going for an extension or automation, I'd recommend, in order:

  1. Event System to set the values you want based on the Schema, perhaps by copying an existing configuration Component
  2. GUI Extension to let editors choose from existing content "prototypes," possibly using Content Types settings or again, configuration Components

Functionally, the easiest way to have users set the correct text might be to have them copy and paste an example. For an extension to set such a default, I'd seriously consider some kind of configuration or prototype Component because:

  • The default value might change over time
  • Other types of default values could be introduced, where users might choose from multiple types
  • The default value might differ based on Publication context (and how the prototyped Component is localized)

Finally, you want to set the value on the item's first creation or perhaps only during certain events (creation, copy, and/or localize?). Rather than program this logic into a GUI extension, it makes sense to use the system's already defined events.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.