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

Avatar

Avatar
Boost 1
Level 2
AEMWizard
Level 2

Like

1 like

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 1
Validate 10
Validate 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 1
Level 2
AEMWizard
Level 2

Like

1 like

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 1
Validate 10
Validate 1
Applaud 5
Affirm 1
View profile
AEMWizard
Level 2

20-04-2020

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

20-04-2020

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.

Answers (1)

Answers (1)

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

17-05-2020

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

 

Check aem launch integration.