Expand my Community achievements bar.

SOLVED

Is there the equivalent of requestScope variables in Sightly?

Avatar

Level 2

In jstl you can set variables in on component that are available to all other components after it in the same request. In AEM using sightly is there an equivalent way to pass data between components.

(the use case we are looking at is where we want one component to know when it's included via another component, rather than dragged into a parsys).

1 Accepted Solution

Avatar

Correct answer by
Level 10

In slightly there is no Accessing Scoped equivalent and are only visible within the slightly template.  From one of the training I heard was there is no plan in the future because this can lead variables leek into other contexts.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

In slightly there is no Accessing Scoped equivalent and are only visible within the slightly template.  From one of the training I heard was there is no plan in the future because this can lead variables leek into other contexts.