April 1, 2020
Estimated Post Reading Time ~

How to Over-Ride Built-In CQ Components

CQ’s components are located in /libs.  You can over-ride them or their behavior by having your component in /apps in exactly the same path.  Eg: to configure the PDF Writer, over-ride its default configuration node at /libs/cq/config/rewriter/pdf with your configuration at /apps/cq/config/rewriter/pdf.

This method ensures that the setting will survive any software upgrades.
P.S. The PDF Writer XSL Stylesheet is at \libs\wcm\core\content\pdf\page2fo.xsl


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.