Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use cq:includeClientLib in CQ5 to include CSS and Javascript

What are the js and css include concepts in CQ5 using clientLibrary[cq:includeClientLib]? It would be great to have an example with screen shot.

like image 712
Vinoth Kumar Subramanian Avatar asked Sep 14 '12 08:09

Vinoth Kumar Subramanian


People also ask

How do you add CSS and JS in AEM component?

create a clientlibs folder within the component folder and add the js, css required for that component. and then include this clientlib in your component. You add CSS files and JQuery framework files to a cq:ClientLibraryFolder node to define the style of the client JSP.

What is the use of JS TXT in the CQ HTML client library?

Select the client library folder and click Create > Create file. In the file name box, type one of the following file names and click OK: js. txt : Use this file name to generate a JavaScript file.


1 Answers

With reference to your question, please find the below link: http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/12/clientlibs-explained-by-example.html

like image 143
anima hembram Avatar answered Sep 23 '22 00:09

anima hembram