Apple TV Docs

Context

The Rock TV framework supports setting contexts. You can put any Rock Entity into the context by using it's friendly name as the context key and it's Id or Guid as the value.

Context's are saved across viewing sessions. This is most commonly used for the concept of Campus, but could be used for other use cases.

Context Commands

There are two commands to know when setting context:

Set Context

Clear Context

Using Context in Page Lava

Once set the context can be used in the page loads. An example of this is below using the campus context.

{% assign campus = Context.Campus %}

Campus Context Details

The campus context is not linked to a person's campus. If a person is logged in and you want to personalize the context based on campus you should:

  1. Check to see if there is a campus context. If so use that.
  2. If there is no campus context then use the Person's campus.