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

SOLVED

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

manal-ghanim
Level 2
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
Arun_Patidar
Correct answer by
Community Advisor
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>

View solution in original post

5 Replies
manal-ghanim
Level 2
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.

Arun_Patidar
Correct answer by
Community Advisor
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>

View solution in original post

manal-ghanim
Level 2
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>
manal-ghanim
Level 2
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
>
Dipti_Chauhan
Community Advisor
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