close

Filter

loading table of contents...

Studio Developer Manual / Version 2310

Table Of Contents

9.32.7 Generic Preview URL Service Provider

In contrast to the generic URI template preview provider, the generic preview URL service provider does not provide the URL to the previewable content. Instead, the URL to an external preview URL service is provided, which is responsible to deliver the effective preview URL for the content.

The URL to the preview service is configured very similar to the generic URI template preview provider. The provided URL of the preview URL service is extended by client side runtime query parameters for example like this:

https://my-preview-url-service.de/previewurl/550?contentType=CMChannel&previewDate=XXXX&
      view=XXX&userVariant=&userVariantTS=1592902149681&p13n_test=true&contentTimestamp=48634
    

In this example, the full querystring was appended by the Studio client to the URL of the basic preview URL service ('https://my-preview-url-service.de/previewURL/550').

The appended querystring is added at runtime and cannot be altered. An external preview URL service has to implement this 'contract'. This means, if the service has to support, for example, the preview date, it has to use the predefined date format and the query parameter name 'previewDate'.

Studio with multiple Previews

Figure 9.26.  Studio with multiple Previews


In order to enable the generic preview URL service provider, add a struct to the 'previews' array with these keys:

id

Freely choosable, unique preview ID, 'myPWAPreviewUrlService', for example

providerId

previewUrlServicePreviewProvider

displayName

Non localized display name for the preview selection, 'PWA Preview', for example

enabled

true

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.