Not able to call client libs from content fragmet in aem cloud | Community
Skip to main content
Level 2
May 12, 2021
Solved

Not able to call client libs from content fragmet in aem cloud

  • May 12, 2021
  • 2 replies
  • 1831 views

Hi All,

i want to load custom clientlibs in my content fragment page but the js call is not getting called.

 

http://localhost:4502/editor.html/content/dam/test/testcontentfragment  

i am using categories - dam.cfm.authoring.v2

 

 

But still my js is not geting called. 

 

@arunpatidar 

 
 
 
 
 

 

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 Vijayalakshmi_S

Hi @raushan,

Please try dam.cfm.authoring.contenteditor.v2. This has the editor.js file which gets called on CF Editor.

Respective clientlibs path is available here - /libs/dam/cfm/admin/clientlibs/v2/authoring/contenteditor

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
May 12, 2021

@raushan  Please try with "dam.cfm.authoring.editors.v2",

 

You can simply view the html source the editor page, and see either css/js file with /cfm/ and check the category of the file and use the same.

RaushanAuthor
Level 2
May 13, 2021

Hi @shashi_mulugu i have tried dam.cfm.authoring.editors.v2 , but this is also not working. when I am checking js file inside libs , it's showing category name dam.cfm.authoring.v2   but with this it's also not working. is my clientlibs folder location is correct.? please find the libs clientlib attachment.

 

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
May 13, 2021

Hi @raushan,

Please try dam.cfm.authoring.contenteditor.v2. This has the editor.js file which gets called on CF Editor.

Respective clientlibs path is available here - /libs/dam/cfm/admin/clientlibs/v2/authoring/contenteditor

Level 2
December 13, 2022

Hello @vijayalakshmi_s ,
Can you help in understanding a bit more for this clientlib category - dam.cfm.authoring.contenteditor.v2
I have create multifield content fragment and created an clientlib and category with the above specified. 
When I do a search in CRXDE, I see 2/3 occurrences of same category from /libs and 1 from my project /apps.
My question is - if all the clientlibs with same category gets load 2/3 from /libs and 1 from /apps??

Thanks in advance.