April 1, 2020
Estimated Post Reading Time ~

Multiple Representations of the Same Content

In CQ, it is possible to get multiple representations of the same content page by requesting it with different file extensions (Apache Sling makes this possible).

For example, different representations of the same page at /content/geometrixx/en/products/triangle/overview can be obtained just by changing the URL file extension. See below:

http://localhost:4502

/content/geometrixx/en/products/triangle/overview.html
/content/geometrixx/en/products/triangle/overview.xml
/content/geometrixx/en/products/triangle/overview.pdf
/content/geometrixx/en/products/triangle/overview.json
/content/geometrixx/en/products/triangle/overview.infinity.json


By aem4beginner

No comments:

Post a Comment

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