Create & Use New View Modes

As with any other entity in Drupal, when rendering it in different contexts, you might want to have specific view modes.

Here you can find instructions on how to add new view modes into the embedded entity form on the YMCA Website Services distribution.

Create a New View Mode

  1. Go to the ‘View modes’ page: Structure > Display modes > View modes (or visit the URL: /admin/structure/display-modes/view).

    View Modes in Menu

    View Mode Types

  2. Create a new view mode: click the ‘Add view mode’ button and select an entity type (or visit the URL: /admin/structure/display-modes/view/add).

    Add View Mode - First Way

    Alternatively, after each entity type, you can see ‘Add new {Name} view mode’ and click on it.

    Add View Mode - Second Way

  3. Select “Media” and then give a name to your new view mode (or visit the URL: /admin/structure/display-modes/view/add/media).

    Creating View Mode

Use the View Mode

  1. Go to Configuration > Text editor embed buttons (or visit the URL: /admin/config/content/embed).

    Using View Mode

    View Mode Using List

  2. Ensure you enable the new view mode in “Allowed Entity Embed Display plugins” and click “Save” at the bottom of the page.

    Enable View Mode

Last modified March 11, 2025: feat: improve docs (3e852052)