Step 4: Use the ECL Menu Connector and ECL Menu Item Connector Together

Overview

If you would like to pull in Menu entities and Menu Item entities from your Menu ECLs, you can use the ECL Menu Connector and ECL Menu Item Connector together.

The benefits of using both connectors in tandem are:

  • You can easily create linked entity relationships between Menu and Menu Item entities.
  • Using Streams , you can reference data stored on each linked entity by referencing the other. This is optimal for representing your specific menu offerings by location in Pages or Search.

Steps to Install

To link your Menu entities to your Menu Item entities, follow these steps:

  1. Make sure the ECL Menu Connector is installed in your account. This will create Menu entities, and will store the Entity ID on the entity.
  2. Make sure the ECL Menu Item Connector is installed in your account.
  3. Make the following adjustments to the ECL Menu Item Connector:
    • Click into Edit Configuration
    • Scroll down to Transform #8, Function on a Single Cell. Click Edit, then click the drop-down next to Plugin.
    • Select eclItem_getAssociatedMenuIds and change the Function to getMenuIdArray. Click Apply.
  4. Click into the Map Data tab, and scroll down to the Associated Menus column.
    • Change the field mapping to Associated Menus (ID).
    • Click Save and run the connector.

Since you already have Menu entities in your account, the linked Menu entities will be added to your Menu Item entities based on matching the Entity IDs of the associated Menus.

light bulb
Tip

If you would like to map both menu names and linked Menu entities to your Menu Item entities, follow these steps:

  • Duplicate the Associated Menus column using a transform.
  • Map the duplicated column to the Associated Menus field.