Campus Context Setter

Rock's context aware features mean that campuses can share many of the same pages while still providing campus-specific content. Using the Campus Context Setter block allows you to set the campus context in these scenarios. 

Take, for example, the below screenshot. We have a Campus Context Setter block on the left, and an HTML block on the right. We've selected the "Main Campus" on the left, and we're being shown content for that campus on the right.

Now all we have to do is change the selection from "Main Campus" to "Sun City" and we see unique content specific to the Sun City campus, even though we're still on the same page.

To set this up, you'll need to access the HTML block's settings and set the Context Entity Type to "Campus" just like we set it to "Group" in the prior example. Unlike the prior example, you won't need to set anything on the page's configuration. Rather than pointing to a query string parameter, the Campus Context Setter block determines which campus is being viewed.

With the HTML block configured, separate your HTML content by campus. In the below example we used the Campus Id to distinguish campuses, but you could also use the GUID of the campus. Notice how on the first line we used the Context syntax to get to the Campus Id.

While you're there, be sure to review the block settings for the Campus Context Setter block. Typically you won't need to make changes here, but you can do things like set a default campus, or restrict which types of campuses can be shown. There's also a setting to be aware of called Update Family Campus on Change. If this is enabled, the person's Family Campus will change based on the campus they select, regardless of where this block is placed or how it's being used.