The CreatorCon Call for Content is officially open! Get started here.

In Portal custom SC Catalog Item widget issue

Jyoti Tripathi
Giga Guru

Hi All,
In our custom portal, the Copy SC Catalog Item widget does not show the Short Description of Record Producer. where as in OOTB it shows proper info. There is no code change in SC Catalog Item widget .

How does Description and Short Description are called in that widget?

JyotiTripathi_0-1703238086340.png


OOTB Widget screenshot-

JyotiTripathi_1-1703238217086.png

 

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Hi @Jyoti Tripathi The OOB widget displays as per below HTML highlighted

HarishKM_0-1703239075801.png

 

In your custom widget you can do like below to put short desc and description after highlighted line and try

data.sc_cat_item.name= gr.getValue('short_description');
data.sc_cat_item.description = gr.getValue('description');

 

HarishKM_1-1703239213347.png

 

 

 

Regards
Harish

View solution in original post

4 REPLIES 4

Saurabh Gupta
Kilo Patron

Hi,
Below is the HTML template - highlighted portion is printing short description. 

SaurabhGupta_0-1703238694066.pngSaurabhGupta_1-1703238771003.png

 


Thanks and Regards,

Saurabh Gupta

Harish KM
Kilo Patron
Kilo Patron

Hi @Jyoti Tripathi The OOB widget displays as per below HTML highlighted

HarishKM_0-1703239075801.png

 

In your custom widget you can do like below to put short desc and description after highlighted line and try

data.sc_cat_item.name= gr.getValue('short_description');
data.sc_cat_item.description = gr.getValue('description');

 

HarishKM_1-1703239213347.png

 

 

 

Regards
Harish

Hi @Harish KM : In my copy SC Catalog Item Widget these script line and html line is available. But still Short Description is not available

Hi @Jyoti Tripathi you can add the below line after line 184 in server script to get values of desc and short desc

data.sc_cat_item.name= gr.getValue('short_description');
data.sc_cat_item.description = gr.getValue('description');

Regards
Harish