Duplicate and modify

Duplicate a component and make changes to the original.

Use this approach when you need to change a component that should affect most, but not all, places where it is used.

For example, suppose you have a component for a call-to-action button that you use in many places across your content. This component has a link attribute that contains a label and a URL. But now you need a new attribute that is useful for most places — but not all.

In this case, the best approach is to duplicate the original component, update those few places to use the copy, and then make the necessary changes to the original component.

Here are the steps to follow:

  1. Go to the Components page and find the component you want to modify.
  2. Click Options (), then click Duplicate component.
  3. Enter a name and slug for the new component.

  4. Click Save to create the component.
  5. Update the places that should not be affected to use the copy instead.

  6. Make any necessary changes to the original component.