Does Sling mapping apply to jcr:content path nodes

Question

Does Sling mapping apply to jcr:content path nodes

Answer

If you create a page and place the download component on the page and then configure it to make the example PDF available for downloading, you will notice that the URL used for the PDF has not changed. This is because even though you defined the necessary mappings (as we did above) and you can test them to make sure they work, AEM by default only uses the mapping rules for URLs associated with HTML pages.

So links to things like PDFs stored in the DAM never get rewritten. This behavior can be overridden by deploying a custom implementation of the com.day.cq.rewriter.pipeline.RequestRewriter service into the OSGi container. If you do this, AEM  picks up the custom implementation and consults it when it comes to rewriting URLs in pages.

Link:- http://www.cqblueprints.com/tipsandtricks/serving-static-assets-alt-url.html.

 Adobe

쉽고 빠르게 지원 받기

신규 사용자이신가요?

Adobe MAX 2024

Adobe MAX
크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX

크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX 2024

Adobe MAX
크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX

크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인