Does Sling mapping apply to jcr:content path nodes


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 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.


이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책