adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
746 stars 753 forks source link

Page Property "id" Overrides in Live Copy overwritten on Rollout #2868

Open HitmanInWis opened 1 month ago

HitmanInWis commented 1 month ago

The "id" page property is overwritten when the blueprint site executes a new rollout.

Scenario:

The solution is that the id field should be configured in the Page dialog with the cq-msm-lockable attribute.

<id
    cq:showOnCreate="true"
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
    fieldDescription="HTML ID attribute to apply to the component."
    fieldLabel="ID"
    name="./id"
    validation="html-unique-id-validator">
    /* ADD THIS */
    <granite:data
        jcr:primaryType="nt:unstructured"
        cq-msm-lockable="id"/>
</id>