Prepopulating the description of experience fragment to variation

Avatar

Avatar

deepakt84913413

Avatar

deepakt84913413

deepakt84913413

20-05-2019

Hi,

I am trying to prepopulate the description field of the experience fragment into variation in 6.3. Is there an out of the box way to do this?

Thanks for the help.

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

20-05-2019

Hi,

There is no way to do that OOTB but you can do it using javascript as soon as variant created you can make an ajax request at

var path = Granite.author.ContentFrame.contentURL+"/jcr:content.json";

and read the jcr:description key and set the variations description field.

e.g. http://localhost:4502/content/dam/mfHTL63/title/jcr:content.json

Screenshot 2019-05-21 at 1.21.47 AM.png

Avatar

Avatar

deepakt84913413

Avatar

deepakt84913413

deepakt84913413

20-05-2019

But we cannot set a property with javascript right?

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

21-05-2019

you can do but in your case variation is not yet created, so fill variation description with master description variation.

I don't think so if you need to create property for that.