QuestionQ14
Given a scenario, identify how to implement custom components and templatesA developer must create a new Title component. The requirements are:
- The layout must match the Title Core Component.
- The text property must use the page title as a prefix (for example,
Page Title - <component text>). - The component must be reusable.
Which approach is recommended?
- A
- Create a Proxy Component of Title core component2. Create a Custom Sling Model that overrides the default behavior3. Customize the component template
- B
- Create a custom component from scratch2. Create a Custom Sling Model for the component that follows the requirement3. Create a Model Exporter
- C
- Create a Proxy Component from Title core component2. Create a Custom Sling Model that overrides the default behavior
Community Discussion