Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to Configuration > Plugins.
  2. Click [Browse].
  3. Navigate to the folder containing the Headless presentation (headless-integration.zip or the wmaheadlesspresentation zip).
  4. Select the archive and then click [Open].
  5. Click [Apply].
  6. Refresh XperienCentral in your browser.



 

...

Setting the Content Type for XperienCentral Headless

In XperienceCentral R23 the headless integration bundle is included as an edition bundle that is created as an Add-on for XperienceCentral. The addon has an headless presentation plugin that uses presentation JSP to produce JSON. Normal presentation plugins always use the contenttype header text/html. But for this case a other contenttype header is needed. (application/json).  To provide a configurable contenttype header the jsp descriptor has been expanded to support a <contentype> node. In this node you can add your own contenttype to be used when the page is rendered. Normal only the page jsp needs this node in the descriptor. So if you add your own contenttype to this descriptor the page will be generated with that contenttype.

A other way to choose your own contenttype is a java interface that is also added into the headless presentation bundle. XperienceCentral will automatically use the contenttype you have chosen if the interface is used in your own bundle.