Problem loading custom script with the clientlibs tag | Community
Skip to main content
roberth55706517
Level 4
October 16, 2015
Solved

Problem loading custom script with the clientlibs tag

  • October 16, 2015
  • 2 replies
  • 548 views

I am working on a project where they are heavily customizing standard pages. I have been able to add a button they asked for on a page but when I add the category for the script, the script is not being included on the page. The dumplibs.html tool shows the script with it's path and content fine. I can see it in the CRX tool but the script is not being included with the rendered page. I have the defined category name listed in the <clientlibs categories="....,my.category" />  but I don't see the script when the page is created.

 

Any ideas?

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 roberth55706517

I found it. Someone else had created the folder. They did not think they need the full list of files and the css.txt file was not created. I think this is stupid as hell but if  you don't have the .content.xml, css.txt, and js.txt, the TouchUI will not load anything. I added the css.txt file and all of a sudden, it worked.

2 replies

smacdonald2008
Level 10
October 16, 2015

Is there a naming conflict - did you use this more than 1 time. That is the only time that I have seen a clientlib not load - when the same name was used more than once for a client lib. 

roberth55706517
roberth55706517AuthorAccepted solution
Level 4
October 16, 2015

I found it. Someone else had created the folder. They did not think they need the full list of files and the css.txt file was not created. I think this is stupid as hell but if  you don't have the .content.xml, css.txt, and js.txt, the TouchUI will not load anything. I added the css.txt file and all of a sudden, it worked.