Reputation: 213
I'm again coming up against problems after picking up some tasks on CQ 5.3 but having used nothing but 5.6 before this.
My problem is with client libraries:
In CRXDE Lite in CQ 5.3 I went and set up my client libraries as I normally would at component level and /etc/designs/<project>
level (using type cq:ClientLibraryFolder), however after including the line <cq:includeClientLib css="my.category"/>
I got a jsp error stating the tag was not defined.
Sure enough, after a quick Google I found this tag wasn't introduced until 5.4, so my question(s) are:
Internet searches have turned up no information (or I'm searching for the wrong thing), hence my question here.
Thanks in advance
Upvotes: 0
Views: 115
Reputation: 9281
Yes, the cq:includeClientLib tag was introduced in 5.4 only.
But even without that you can include your clientlibs using the com.day.cq.widget.HtmlLibraryManager
service.
The tag was just a convenience wrapper around this service interface.
HtmlLibraryManager htmlMgr = sling.getService(HtmlLibraryManager.class);
if (htmlMgr != null) {
htmlMgr.writeCssInclude(slingRequest, out, "my.category");
}
Refer HtmlLibraryManager API docs for the other methods that are provided.
Upvotes: 1