MSM : cq:redirect of live copy doesnt pick jcr value | Community
Skip to main content
Level 2
July 9, 2021
Solved

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

  • July 9, 2021
  • 2 replies
  • 1740 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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>

2 replies

Level 2
July 9, 2021

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.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 9, 2021

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
Dipti_Chauhan
Community Advisor
Community Advisor
July 10, 2021
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
December 5, 2022
< 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 >