Republishing related items to Experience Edge does not update the webpage content


Description

Editing a content item that is referenced by a data source item, and then publishing it to Experience Edge, might not update the page that uses the data source item.

The issue occurs if a page item has a rendering that uses a data source item with a reference field, which, in turns, refers to another content item with a field. Editing that content item's field and publishing changes to Experience Edge does not update the page item.

Solution

As a solution, consider the following steps:

  1. Add the Content Dependency template
    • /sitecore/templates/System/Layout/Rendering Dependencies/Content Dependency
    to the default list of base templates:
    • /sitecore/templates/Foundation/JavaScript Services/Json Rendering
    • /sitecore/templates/Foundation/JavaScript Services/JavaScript Rendering

    This will add the Content Dependencies field to JSON and JavaScript renderings:
    A screenshot of a computerDescription automatically generated

  2. Enable one or more of the Content Dependencies options, based on your content structure. To learn more about these options, click here.