U bekijkt help-inhoud voor de versie::

Follow this page to learn about Offline channels and update handlers.

The Screens player provides offline support for the channels by leveraging the ContentSync technology.

The players use a local http server to serve the unzipped content.

When a channel is configured to run online, the player serves the channel-resources by accessing the AEM server but when the channel is configured to run offline, the player serves the channel-resources from a local http server.

The workflow for the process is as follows:

  1. Parse the desired page(s)
  2. Collect all related assets
  3. Package everything in a zip file
  4. Download the zip and extract it locally
  5. Display local copy of the content

Update Handlers

The ContentSync uses update handlers to parse and collect all necessary pages and assets for a specific project. AEM Screens uses the following update handlers:

Common Options

  • type: the update handler type to use
  • path: path to the resource
  • [targetRootDirectory]: target folder in the zip file
Type Description Options
channels collects a channel extension: extension of the resource to collect
[pathSuffix='']: suffix to add to the channel path
[deep=true]: whether to parse child pages recursively
[includeImages=true]: include all images in the channel
[includeVideos=true]: include all videos in the channel
[includeProducts=true]: include all products in the channel
clientlib collect the specified client library [extension='']: can be either css or js, to collect only the former, or only the latter
assetrenditions collect the asset renditions [renditions=[]]: list of renditions to collect. Defaults to the original rendition
copy copy the specified structure from path  

Update handler configuration examples

Testing ContentSync Configuration

Follow the steps below to test the ContentSync configuration:

  1. Open http://localhost:4502/libs/cq/contentsync/content/console.html
  2. Select your config in the list
  3. Click Clear Cache
  4. Click Update Cache
  5. Click Download Full
  6. Extract the zip file
  7. Start a local server in the extracted folder 
  8. Open your start page and check your app status

Enabling Offline Config for a Channel

Follow the steps below to enable offline config for a channel:

  1. Inspect the channel content and check if it is requested from an AEM Instance (Online).

    chlimage_1
  2. Navigate to the channel dashboard and click ... in the CHANNEL INFORMATION Panel to change the properties.

    chlimage_1
  3. Navigate to the channel properties and make sure the checkbox is disabled under the Channel tab. Click Save & Close.

    chlimage_1

    Content is pushed to the Screens player.

    chlimage_1
  4. Inspect the channel content and check if it is requested from the local Player-Cache. 

    chlimage_1

Dit werk is gelicentieerd onder de Creative Commons Naamsvermelding/Niet-commercieel/Gelijk delen 3.0 Unported-licentie  De voorwaarden van Creative Commons zijn niet van toepassing op Twitter™- en Facebook-berichten.

Juridische kennisgevingen   |   Online privacybeleid