Multifield on page properties after inheritance on Live copy pages | Community
Skip to main content
Level 2
July 8, 2021

Multifield on page properties after inheritance on Live copy pages

  • July 8, 2021
  • 2 replies
  • 2775 views

I have a Multifield on page properties on english(blueprint page). french page is the live copy of en page. On french page the multifield is inherited from en page. Multifield is having 3 fields: a single selectable dropdown, multiselect dropdown and a text field. The chain icon is added as the last item in the fieldset. If I click on chain icon to cancel the inheritance. I am unable to cancel the inheritance. Did anybody else has also faced this issue or is there any limitation on this from aem side? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

maansAuthor
Level 2
July 9, 2021

Here is the sample code for same.

<hreflangSettings cq:showOnCreate="{Boolean}false"
jcr:primaryType="nt:unstructured" jcr:title="HrefLang Settings"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<hreflang granite:class="foundation-layout-util-maximized-alt"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
fieldDescription="Click 'Add Field' to add a set of hreflang for one domain alternate url"
composite="{Boolean}true"
renderReadOnly="{Boolean}true">
<field jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./hrefLang">
<items jcr:primaryType="nt:unstructured">
<well jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/well">
<items jcr:primaryType="nt:unstructured">
<language granite:class="language" jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
emptyText="Select" fieldLabel="Language" name="./language"
renderReadOnly="{Boolean}true" required="{Boolean}true"
translateOptions="{Boolean}true">
<granite:data jcr:primaryType="nt:unstructured"
cq-msm-lockable="jcr:language" />
<datasource jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/dropdownPopulator" addNone="{Boolean}true"
dropdownSelector="languageList"/>
</language>
<countries granite:class="countries"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
emptyText="Select" fieldLabel="Countries" multiple="{Boolean}true"
name="./countries" renderReadOnly="{Boolean}true"
translateOptions="{Boolean}true">
<granite:data jcr:primaryType="nt:unstructured"
cq-msm-lockable="jcr:countries" />
<datasource jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/dropdownPopulator" addNone="{Boolean}true"
dropdownSelector="countryList"/>
</countries>
<domainalturl jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Alternate URL" name="./domainUrl" value="" />
</items>
</well>
</items>
</field>
</hreflang>
</items>
</hreflangSettings>

 

 

If I delete the multiselect countries dropdown from the multifield fieldset  I am able to cancel the inheritance. Is there any issue on multiselect dropdown here. Any help will really be appreciated.

Vijayalakshmi_S
Level 10
July 12, 2021

Hi @maans,

cq-msm-lockable property (that is responsible for the lock icon on live copy pages) should have the value same as that of your field name property. 

In this case,

  • if your multiselect dropdown field name is ./countries, then cq-msm-locable property should be countries
  • Same with language field too. 
June 10, 2022

Hi @vijayalakshmi_s ,

 

Adding cq-msm-lockable property as mentioned didn't resolve the issue.

 

Please find the below code:

 

<addpopup
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Add Pop-up">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
name="./popup"
translatable="{Boolean}false">
<items jcr:primaryType="nt:unstructured">
<title_popupMulti
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Pop-up Content Title"
name="./title_popupMulti"
required="{Boolean}true"

translatable="{Boolean}true">
</title_popupMulti>
<urls_popupMulti
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
fieldLabel="URLs to Receive Pop-up Content">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
name="./urls_popupMulti"
rootPath="/content/mdt"
translatable="{Boolean}false"/>
</urls_popupMulti>
<button_popupMulti
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
emptyText="Continue"
fieldLabel="Button Text for Pop-up Notification"
name="./button_popupMulti"
required="{Boolean}true"
value="Continue"

translatable="{Boolean}true">
</button_popupMulti>
</items>
</field>
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="popup"/>
</addpopup>

 

 

The above code lets me break the chain and edit the live copy page properties but a rollout is overwriting those changes and replacing with the values from master copy/blueprint.

 

Please let me know if there's any other way to fix this issue. Thanks!!

 

Level 9
December 18, 2022

I see a similar issue as well .. please let me know if this is a known issue