Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Slightly Equivelant to include /libs/foundation/global.jsp

Avatar

Level 4

Hello All,

Forgive me, as I am coming from a heavy front-end world and am now shooting into AEM development mode!

I am trying to pick up Slightly as we are starting from scratch with our AEM project. 

Is there a Slightly Equivilent to <%@include file="/libs/foundation/global.jsp"%>

Would I do the same thing but with the slightly include? For example:

    
<section data-sly-include="/libs/foundation/global.jsp"></section>

Do I need this to bring my components into scope with the global objects?

Thanks, and sorry if my questions are geared towards newbies.

-Tyler

1 Accepted Solution

Avatar

Correct answer by
Employee

No, there is no equivalent import necessary in Sightly.

All of the objects that are initialized in the JSP environment by the global.jsp import are already present and initialized in the Sightly environment.

See this page & heading: http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context Objects

View solution in original post

3 Replies

Avatar

Level 10

No need of including global.jsp for sightly

Avatar

Correct answer by
Employee

No, there is no equivalent import necessary in Sightly.

All of the objects that are initialized in the JSP environment by the global.jsp import are already present and initialized in the Sightly environment.

See this page & heading: http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context Objects

Avatar

Employee

No.  There is no need for an include like the global.jsp in Sightly. 

All of the Context Objects that are initialized by the global.jsp in the JSP environment are already present and initialized in the Sightly environment.  They have the same names and functionality.

See this page in the documentation:  http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#Context%20Objects