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

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

Mark Solution

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

해결됨

AEM Core WCM Components 2.8.0 , cq/cloudconfig/components/scripttags/header && footer

Avatar

Level 7

Hello, I'm attempting to create my own page component. I am overlaying core/wcm/components/page/v2/page. I found two lines of cloud configuration code, and a bit confused as what they are actually doing.

I am seeing these two lines of Sightly Includes:

path: /apps/core/wcm/components/page/v2/page/headlibs.html
<sly data-sly-test="${hasCloudconfigSupport}" data-sly-resource="${'cloudconfig-header' @ resourceType='cq/cloudconfig/components/scripttags/header'}"></sly>

path: /apps/core/wcm/components/page/v2/page/footer.html
<sly data-sly-test="${page.hasCloudconfigSupport}" data-sly-resource="${'cloudconfig-footer' @ resourceType='cq/cloudconfig/components/scripttags/footer'}"></sly>

I've already checked out the cloud service configuration documentation, and found nothing.

Questions I have:

  1. What does the scripttags/header solve?
  2. What does the scripttags/footer solve?

Thank you.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee

It has to do with resolving context-aware configuration stuff. 

 

It's using an underlying service user cloudconfig-scripttags with jcr:read permissions to read the ScriptTagComponents from all cloud services.

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Employee

It has to do with resolving context-aware configuration stuff. 

 

It's using an underlying service user cloudconfig-scripttags with jcr:read permissions to read the ScriptTagComponents from all cloud services.

Avatar

Level 1

Can you elaborate more on this one, I had the similar doubt but I didn't find much adobe documentation. what are scripttag components and how they will be resolved with the above script.

Avatar

Community Advisor

These  lines are for injecting analytics script code in header and footer.

 

Check aem launch integration.