How is it possible to create a custom widget client-library that provides new or modified WCM functionality?
CQ5 provides an interface to add new JavaScript functionality to the WCM authoring interface through the Ext.JS framework. These so-called client-libraries provide the following:
The next steps outline what is required to build a custom client-library.
http://<host>:<port>/crxde
)cq:ClientLibraryFolder
, e.g. /apps/myapp/ui/mylib
sling:resourceType
to widgets/clientlib
categories
to one or more of the followingCategory Name | Description |
---|---|
cq.wcm.admin |
SiteAdmin and Tools |
cq.wcm.edit |
ContentFinder and edit page |
cq.dam.admin |
DAM Admin |
cq.dam.edit |
DAM AssetShare, AssetEditor |
dependencies
to other client-libraries in the systemsource
folder below the client-lib node, e.g. /apps/myapp/ui/mylib/source
/apps/myapp/ui/mylib/source/MyWidget.js
/apps/myapp/ui/mylib/source/override/ComponentList.js
js.txt
to include above created files in the custom client-lib:
#base=source
MyWidget.js
override/ComponentList.js
CQ5 automatically observes changes to a client-library in the repository and will re-register this library for subsequent usage in the corresponding category, e.g. when editing a page. Attached is an example CQ content package that does the following:
/apps/myapp/ui/mylib
cq.wcm.edit
CQ5.x
Download
Sign in to your account