Expandir la barra de logros de la comunidad.

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

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

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 solución aceptada

Avatar

Respuesta correcta de
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

Ver la solución en mensaje original publicado

3 Respuestas

Avatar

Level 10

No need of including global.jsp for sightly

Avatar

Respuesta correcta de
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