Since Slice version 3.1, AEM/CQ related modules have been extracted to separate group named com.cognifide.slice-addon
. There are also separate versions of modules depending on AEM/CQ version.
Currently there are three two versions of CQ/AEM supportedadd-on which are compatible with Slice 4.0:
- CQ v.5.5 AEM 6.0 - https://github.com/Cognifide/Slice-CQ55AEM60 - by Slice CQ 5.5 AddonAEM60 Add-on, version 1.0.0
- CQ v5.6/5.6.1 - https://github.com/Cognifide/Slice-CQ56 - by Slice CQ 5.6 AddonAdd-on, version 12.0.1AEM60 0
- CQ 5.5 - https://github.com/Cognifide/Slice-AEM60 - by Slice AEM60 Addon, version 1.0.0
...
- CQ55 currently not supported with Slice 4.0. Let us know if you need it!
What Slice AEM/CQ Add-ons gives you ?
Handy, injectable objects and annotations providing useful objects specific to particular version of AEM/CQ/AEM.
...
. Objects which you can use (inject) in your class are contained in below table
...
Class | Annotation | Description | Module | |||
---|---|---|---|---|---|---|
com.day.cq.wcm.api.PageManager | - | CQ's PageManager | ||||
com.day.cq.wcm.api.Page | com.cognifide.slice.cq.qualifier.CurrentPage | A page which contains current resource. It doesn't have to correspond to requested page. | CurrentPageModule | |||
java.lang.String | com.cognifide.slice.cq.qualifier.CurrentPagePath | Path to a current page | ||||
com.day.cq.wcm.api.Page | com.cognifide.slice.cq.qualifier.RequestedPage | A page which contains originally requested resource. | RequestedPageModule | |||
java.lang.String | com.cognifide.slice.cq.qualifier.RequestedPagePath | Path to a requested page | ||||
com.day.cq.dam.api.Asset | - | Asset adapted from current resource. null , if current resource is not an asset. | DamModule | |||
com.day.cq.wcm.api.WCMMode | - | Current WCMMode assigned with the request | CQModule | |||
java.lang.String | com.cognifide.slice.cq.qualifier.CurrentTemplatePath | Path to a template of current page. | TemplateModule |