Skip to content

Event handler is only removing orphan renderings in Shared Layout field #2

@HarroSchmidt

Description

@HarroSchmidt

Hi,

In the RemovedRenderingReference method of the item:saved handler the id which is used for getting the layout XML is FieldIDs.LayoutField. This is the ID of the Shared Layout field.

Could you please change the event handler to use the Final Layout field (FieldIDs.FinalLayoutField)? This is the layout which is used by default in the Experience Editor.

As of Sitecore 8.1 the following method can be used Sitecore.ExperienceEditor.Utils.WebUtility.GetCurrentLayoutFieldId()

Regards,
Harro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions