Media Feeds

Media Feeds

Using Media Feeds, you can stream dynamic content from the Content Repository and make it available to website visitors in a dedicated channel. You can select the format in which the content is rendered in order to optimize it for a wide variety of devices and web services. Media Feeds work in much the same way as the Dynamic Content Overview Element: you can specify which content items to include, define a publication date range, specify tags, and control the sort order and how many results to show at a time. However, unlike a Dynamic Content Overview content element, the results returned by a Media Feed are shown in a separate channel (URL).

The formats that are available for Media Feeds are JSON, Media RSS, and RSS 2.0. These three options make it possible for you to select the best format for the content items that are returned by the Media Feed. The design template used to render the content in a Media Feed (MediaFeed) can also be modified in order to optimize the visual appearance of the results that are shown. Because a Media Feed is accessed through a URL that is relative to the root address of your website, you can define a public friendly URL that is intuitive and makes clear what the content is (/feed/articles, /feed/multimedia and /feed/mobile, for example).

 

 

 

A Media Feed can display the following content item types:

  • Article

  • Download

  • Image

  • Multimedia

  • Custom media items

  • Page (saved in the Content Repository)

In order for a content item to be available in a Media Feed, it must be in a published state and not have any personalization(s) assigned to it.

 

In This Topic

 


Creating a Media Feed

To create a Media Feed, follow these steps:

  1. Navigate to Configuration > Media Feeds.

  2. Define the following properties for the Media Feed:



             

  3. Click [Apply]. The Media Feed is now available at the specified URL.

 

Back to top

 


Deleting a Media Feed

To delete a Media Feed, follow these steps:

  1. Select the Media Feed you want to delete from the drop-down list.

  2. Click [Delete Media Feed] next to "Media Feed Name".

  3. Click [OK] to confirm the action.

 

 

Back to top

 

 


Building a Media Feed URL

 

The following applies to XperienCentral versions 10.23.0 and higher.

 

You can configure the content of a Media Feed by adding parameters to its URL. This makes it possible to create a custom Media Feed on the fly. The following parameters are supported in a Media Feel URL:

 

Parameter

Description

Parameter

Description

any, all, not

Specifies the media items to include based on assigned tags. For example, the URL

http://127.0.0.1/web/feed/myFeed?any=ajax,football

would return all media items containing the tags ajax or football.

from, to

Specifies the number of results to return. For example, the URL

http://127.0.0.1/web/feed/myFeed?from=1&to=5

would return items 1 through 5.

sort

Sorts the results according to the following parameters:

  • CREATION_DATE

  • MOST_VIEWED

  • MOST_REACTIONS

  • PUBLICATION_DATE

  • VOTE_AVERAGE

  • WEBTITLE

  • LAST_POST

  • MODIFICATION_DATE

For example, the URL

http://127.0.0.1/web/feed/myFeed?sort=PUBLICATION_DATE&any=sports

would return all media items with the tag sports sorted according to publication date.

order

Sorts the results in ascending (ASC) or descending (DESC) order. For example, the URL

http://127.0.0.1/web/feed/myFeed?any=sports&order=ASC

would return all media items with the tag sports sorted in ascending order.

contenttypes

Specifies the media items to include based on their type. The type options are:

  • article

  • image  (image content item)

  • page (saved to the Content Repository)

  • download

  • document

  • <any custom made content types>  (the value(s) can be found via a query in the wmjellycontenttype table in the value column)

For example, the URL

http://127.0.0.1/web/feed/myFeed?contenttypes=article

would return all media items of type article. For custom media types use the identifier provided by the application manager and/or developer.