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

What js and css include concepts in CQ5 using clientLibrary [cq: includeClientLib]? It would be great to have a screenshot example.

+5
source share
2 answers

Create a node inside / etc / designs Ex: (Name: type myDesign must be cq: clientLibraryFolder) add node Name: categories, Type: String [], value = myDesign

Add the css folder and the JS folder, as well as css.txt and js.txt.

Add this code snippet below to include all your css and js.

-1
source

All Articles