Versions Compared

Key

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

...

In XperienCentral, design templates are used to merge the design of a website with the content. The elements on a page, for example, are styled by presentations and are visible as HTML blocks. In XperienCentral Headless, this merging of design and HTML is not performed. Instead, content is delivered in JSON format and no direct styling is performed. To produce the JSON format, a headless presentation is provided, You must install a special plugin named "Headless-Integration Presentation" in order to expoit this functionality. This plugin contains page and element design templates that produce JSON to allow the content to be accessed by external applications. The following presentations are available in this plugin:

...

In XperienceCentral R23, the headless integration bundle is included as an edition bundle that is created as an add-on for XperienceCentral. The add-on has a headless presentation plugin that uses a presentation JSP in order to produce JSON. Normal presentation plugins always use the content type header text/html. For XperienCentral Headless, the content type application/json header is required. To provide a configurable content type header, the JSP descriptor has been expanded to support a <contenttype> node. In this node you can add your own content type to be used when a page is rendered. Usually only the page JSP needs this node in its descriptor. If you add your own content type to this descriptor, the page will be generated with that content type.

Another way to choose your own content type is to use a Java interface that is also added into the headless presentation bundle. XperienceCentral will automatically use the content type you have chosen if the interface is used in your own bundle.


...

Media Feeds

The Media Feeds functionality in XperienCentral can also be used to retrieve complete media items (article, download, image, etc.) in JSON format. This is done using an Ajax call from JavaScript. Media Feeds can be used to supplement the XperienCentral Headless functionality. See Media Feeds for complete information.