Expand my Community achievements bar.

SOLVED

MSM : cq:redirect of live copy doesnt pick jcr value

Avatar

Level 2

Hi, 

After a rollout, all the cq:redirect fields are empty in livecopies dialogs, the values are available in the crx though. 

Same behavior in we.retail site.

Is there a reason why the paths are not visible in the dialog ?

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

where did you add cq-msm-lockable property?

It should be working

 

sample e.g.

<ctag
						     jcr:primaryType="nt:unstructured"
                            cq:showOnCreate="{Boolean}true"
                            sling:resourceType="cq/gui/components/coral/common/form/tagfield"
                            fieldDescription="c_tags description"
                            fieldLabel="c_tags title"
                            multiple="{Boolean}true"
                            name="./ctag"
                            rootPath="/content/cq:tags/ctags">
                            <granite:data
                                jcr:primaryType="nt:unstructured"
                                cq-msm-lockable="ctag"/>
                        </ctag>


Arun Patidar

View solution in original post

6 Replies

Avatar

Level 2

It is somehow related to cq-msm-lockable that comes with MSM. When I removed the cq-msm-lockable, the value prints properly.

The requirement is to keep the cq-msm-lockable and show the value of the cq:redirect in the dialog.

Avatar

Correct answer by
Community Advisor

Hi,

where did you add cq-msm-lockable property?

It should be working

 

sample e.g.

<ctag
						     jcr:primaryType="nt:unstructured"
                            cq:showOnCreate="{Boolean}true"
                            sling:resourceType="cq/gui/components/coral/common/form/tagfield"
                            fieldDescription="c_tags description"
                            fieldLabel="c_tags title"
                            multiple="{Boolean}true"
                            name="./ctag"
                            rootPath="/content/cq:tags/ctags">
                            <granite:data
                                jcr:primaryType="nt:unstructured"
                                cq-msm-lockable="ctag"/>
                        </ctag>


Arun Patidar

Avatar

Level 2

This is how I add the cq-msm-lockable :

<redirect cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
fieldLabel="fieldLabel"
name="./cq:redirectTarget"
rootPath="/content">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="cq:redirectPath"/>
</redirect>

Avatar

Level 2

It works this way :

<
redirect
cq:showOnCreate
="{Boolean}true"
jcr:primaryType
="nt:unstructured"
sling:resourceType
="granite/ui/components/coral/foundation/form/pathfield"
fieldLabel
="fieldLabel"
name
="./cq:redirectTarget"
rootPath
="/content"
>
<granite:
data
jcr:primaryType
="nt:unstructured"
cq-msm-lockable
="cq:redirectPath"
/>
</
redirect
>

Avatar

Community Advisor
Hi your cq-MSN-lockable property name should be same as field name .In your case property name is cq:refirectTarget so cq-msm-lockable property value should be that only. You have given this value as cq:redirectPath that’s why it’s not working

Avatar

Level 1
<
redirect
cq:showOnCreate
="{Boolean}true"
jcr:primaryType
="nt:unstructured"
sling:resourceType
="granite/ui/components/coral/foundation/form/pathfield"
fieldLabel
="fieldLabel"
name
="./cq:redirectTarget"
rootPath
="/content"
>
<granite:
data
jcr:primaryType
="nt:unstructured"
cq-msm-lockable
="cq:redirectTarget"
/>
</
redirect
>