Skip to main content
Level 2
Sep 10, 2018 12:32 PM UTC
Solved

MSM Lockable Not Working on Coral Textfield and Pathfields

I have added the "cq-msm-lockable" attribute to a pathfield and a textfield, when the page is rolled out the lock icon does not display. Is there an additional attribute that needs to be added for this to work?

  <imagePath

  jcr:primaryType="nt:unstructured"

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

  fieldLabel="Roll-up Image Path"

  fieldDescription="Image to be used in roll-up components such as the Page Roll-up. Recommend 3:4, min size 304 by 228"

  rootPath="/content/dam"

  cq:showOnCreate="{Boolean}true"

  cq-msm-lockable="rollupImagePath"

  name="./rollupImagePath"/>

  <imageAltText

  jcr:primaryType="nt:unstructured"

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

  fieldLabel="Roll-up Image Alt Text"

  fieldDescription="Image alt text when page is referenced in roll-up components."

  cq:showOnCreate="{Boolean}true"

  cq-msm-lockable="rollupImageAltText"

  name="./rollupImageAltText"/>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Nisha_Nivedita
Nisha_NiveditaAccepted solution
Adobe Employee
Sep 10, 2018 1:11 PM UTC

What is the AEM version you use with service packs? I had seen on some version the chain icon is not displayed when sling resource type is granite/ui/components/coral/foundation/form/textfield however When granite/ui/components/foundation/form/textfield is used, the issue is not there. Is it same what you see at your end, than possibly get in touch with support.

5 replies

arunpatidar
Community Advisor
Community Advisor
Sep 10, 2018 12:52 PM UTC

Can you try with granite:data

<granite:data

        jcr:primaryType="nt:unstructured"

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

/>

Translate
Arun Patidar
Nisha_Nivedita
Adobe Employee
Nisha_NiveditaAdobe EmployeeAccepted solution
Adobe Employee
Sep 10, 2018 1:11 PM UTC

What is the AEM version you use with service packs? I had seen on some version the chain icon is not displayed when sling resource type is granite/ui/components/coral/foundation/form/textfield however When granite/ui/components/foundation/form/textfield is used, the issue is not there. Is it same what you see at your end, than possibly get in touch with support.

Translate
Level 2
Sep 10, 2018 1:23 PM UTC

I added the following and it worked.

        <imagePath

            cq:showOnCreate="{Boolean}true"

            jcr:primaryType="nt:unstructured"

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

            fieldDescription="Image to be used in roll-up components such as the Page Roll-up. Recommend 3:4, min size 304 by 228"

            fieldLabel="Roll-up Image Path"

            name="./rollupImagePath"

            rootPath="/content/dam">

            <granite:data

                jcr:primaryType="nt:unstructured"

                cq-msm-lockable="rollupImagePath"/>

        </imagePath>

Translate
smacdonald2008
Level 10
Sep 10, 2018 1:25 PM UTC

Thanks for the update. Happy to hear you got this working.

Translate
arunpatidar
Community Advisor
Community Advisor
Sep 10, 2018 1:57 PM UTC

The way data attributes used to be created by Coral2 UI components has been changed in coral3 UI. That is causing problems.

So creating data attribute with Granite/Coral3 components, granite:data node has to be created with data attribute properties

Common Attributes — Granite UI 1.0 documentation

Translate
Arun Patidar