Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

coral textfield : msm lockable. Is this expected behaviour?

Avatar

Level 4

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"/>

1 Reply

Avatar

Level 2

Actually I have the same problem with select from coral

Did you find some workaround ?

Avatar

Level 2

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"/>

/>

Avatar

Level 1

It's working for me, not like all mcdonalds replies

Grill is Better,

Burger King.

Avatar

Level 2

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

Avatar

Level 2

You cannot block dialog's properties individually in a component You only can lock the component node

Avatar

Level 5

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.

Avatar

Level 2

I am seeing this same problem in AEM 6.4 (pathfield and textfields). Did anyone find a solution?

Avatar

Level 2

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