Highlighted

coral textfield : msm lockable. Is this expected behaviour?

mohanb

05-02-2017

Hi

I have added custom field to properties dialogue with resourceType as "granite/ui/components/coral/foundation/form/textfield". When rollout of page is done, on live copy page i don't see the lock icon appearing. When i change resourceType to "granite/ui/components/foundation/form/textfield" lock icon appears on live copy page. Is this expected behaviour? or Do i need to add additional property while resourceType is "granite/ui/components/coral/foundation/form/textfield" for LOCK icon to appear. 

Element definition in .content.xml

<mytitle

    cq:showOnCreate="{Boolean}true"

    jcr:primaryType="nt:unstructured"

    sling:resourceType="granite/ui/components/coral/foundation/form/textfield"

    allowBulkEdit="{Boolean}true"

    cq-msm-lockable=“myTitle”

    fieldLabel=“My TItle“

    name=“./myTitle”

    renderReadOnly="{Boolean}true"

    required="{Boolean}false"/>

Replies

Highlighted

danielgopo

07-03-2018

Finally we found the solution, You can add cq-msm-lockable with granite:data

<filterSectionText

    jcr:primaryType="nt:unstructured"

    sling:resourceType="granite/ui/components/coral/foundation/form/textfield"

    fieldLabel="Some Text"

    name="./someText"

<granite:data

        jcr:primaryType="nt:unstructured"

        cq-msm-lockable="./someText"/>

/>

Highlighted

Manender24

22-08-2018

Hi danielgopo​,

Does your above fix with <granite:data ../> work for components on the page? Or is it just for the page properties?

I cannot make it work for a component level property on AEM 6.2.

Thanks,

Manender

Highlighted
Highlighted

danielgopo

12-11-2018

If you are using coral fields you can use my previous example with granite:data. I have it working in 6.3 and 6.4

Highlighted

dinukam94894732

21-07-2020

we have the kind of same implementation like above solution working in 6.3.But when we upgrading from 6.3 to 6.5 it is giving an error in msmTouchUICommons.js file and inheritance enabling disabling icon is not showing near to page properties. Any solution highly appreciated.