You can assign content to a channel by channel role. Channel role defines the context of the display. The role is targeted by various actions and is independent of the actual channel that fulfils the role.
This section describes a simple use case that defines channels by role and how you can use the same in your AEM Screens project.
While assigning a channel to a display, you have the option of either specifying the path of the display or enter the name of the channel that will resolve to an actual channel by context.
Defining Channel By Role, allows you to create local version of a channel, in order to dynamically resolve location-specific content. For example, a channel with name deals of the day, where the actual content would be different in two cities, but you still have the same channel role in all the displays.
To learn more about channel assignment, see Channel Assignment under authoring section in Screens documentation.
This use case allows you to create channels by roles and then allow the the main channel to use the shared content by their locations.
In this example, we will create a Sightseeing channel that will show have two locations as New York and San Francisco each with their displays and then a main shared channel that both the channels in different locations can share.
- Select the Adobe Experience Manager link (top left) and then Screens. Alternatively, you can go directly to: http://localhost:4502/screens.html/content/screens.
- Click Create to create a new Screens project.
- Select Screens from the Create Screens Project wizard and click Next.
- Enter the title as Sightseeing and click Create.
- Navigate to the Sightseeing project and select the States folder.
- Click Create next to the plus icon in the action bar. A wizard will open.
- Select Location from the wizard and click Next.
- Enter the Title for your location (SF) and click Create.
Similarly, create another location as NY in States folder.