내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Cannot include html using data-sly-include

Avatar

이전 커뮤니티 멤버

In our component html file we are trying to include another html file located at "/etc/designs/proj-name/clientlib-emp/html/ex.html"

<div data-sly-include="/etc/designs/proj-name/clientlib-emp/ex.html"></div>

but we're seeing this error:

Caused by: java.lang.UnsupportedOperationException: Access to resource /etc/designs/proj-name/clientlib-emp/html/ex.html is denied, since the resource does not reside on the search path

What am i missing?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

Sightly before including the resource always checks the path of the resource in the search paths set in the resource resolver configuration. 

http://localhost:4502/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceRes...

Default valid paths are -

/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Employee Advisor

Sightly before including the resource always checks the path of the resource in the search paths set in the resource resolver configuration. 

http://localhost:4502/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceRes...

Default valid paths are -

/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary

Avatar

이전 커뮤니티 멤버

kunal23 wrote...

Sightly before including the resource always checks the path of the resource in the search paths set in the resource resolver configuration. 

http://localhost:4502/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceRes...

Default valid paths are -

/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary

 

Thanks.. that solved our problem!