Generate RSS Feeds in Site Builder

Oracle Content Management provides a simple and effective way to generate RSS feeds. This gives RSS aggregators the ability to subscribe to press releases, partner announcements, and other pertinent information published on your site dynamically, without having to check for new material.

Using Oracle Content Management Site Builder, you can configure an RSS feed that generates the feed in XML format, previews the generated xml, and then publishes the feed to your site. Using Site Builder, you can define how the feed information is displayed and sorted, edit the feed, delete it, or disable it temporarily. Add as many additional feeds as you need to help site visitors subscribe to only the type of information they want. You can even create your own custom RSS feed template to use.

Configure an RSS Feed

Adding and editing an RSS feed is done through Site Builder using an update.

  1. Open a site for editing.

  2. Click Settings icon in the sidebar and then click RSS Feeds icon RSS Feeds.

  3. Click Add to create a new feed. If there are already feeds listed, notice that you can edit, preview, or remove them.

    Note:

    If you inadvertently remove a feed or make a mistake when editing one, you can undo your changes by clicking Undo icon. Multiple actions can be undone or redone Redo icon .
  4. In the Create RSS Feed panel, enter the requested information.

    Element Description
    Enable this feed from the site Toggle this on to enable the RSS feed, off to disable it. It is enabled by default.
    Feed Name The name used for the feed configuration.
    Feed Title The title for the feed when displayed in an RSS aggregator.
    Feed URL The address used by an RSS aggregator to access and load the feed.
    Override Toggles to allow you to change the feed URL entry.
    Description An optional description of the feed configuration.
    Content Type Select the content type that populates the feed, for example, BlogPost or Cartoon. Available content types will depend on the content types used in the Oracle Content Management site repository.
    Maximum Items The maximum number of feed items listed when displayed in an RSS aggregator.
    Order By Select how the items listed in the feed are sorted. Options are Name (A-Z), Name (Z-A), Date (Newest first), Date (Oldest first).
    Page to Display Individual Item Specify the page used to display an item's detailed information in the feed aggregator when an item in the feed list is selected.
    RSS Template Oracle Content Management comes with a default xml template for an RSS feed, but you can create your own as well. RSS templates are created and stored in the developer components section of Oracle Content Management. RSS templates you create are available in this field.
    Language If you translate your site into multiple languages, then you must specify which language to use for your RSS feed. If you want to offer your feed in multiple languages, then you must create multiple feeds.
    Time to Live (TTL) in Minutes The RSS feed time-to-live which controls how long, in minutes, a channel can be cached before refreshing from the source. By default, the RSS feed will be cached on the Akamai CDN that Oracle Content Management provides.
  5. Click Save in the Create RSS Feed panel to save the feed configuration and close the panel.

  6. On the RSS Feeds page you can click Preview to validate and view the xml feed results, Edit to open the Edit RSS Feed panel to make changes, or Remove to delete the feed configuration.

  7. Once you have finished configuring and managing your feeds, click Close.

You can click Save to save your changes to an update at any time. When you are finished configuring your feeds and are ready to merge your changes with the site, click Commit.

Note:

Once the feeds are configured and you commit the update, publishing the site also publishes the enabled RSS feeds configured in the site. The RSS template component is also published when the site using it is published, unless it is already published separately.

Create an RSS Template

As a developer, when you create an RSS template component, you are given a fully-functional sample that you can modify for your own site or business requirements.

Creating an RSS template component is similar to creating any other local component.

  1. Click Developer in the left navigation of Oracle Content Management.

  2. Click View All Components.

  3. Select Create RSS Template from the Create menu on the Components page.

  4. Enter a name and optional description and click Create.

Editing the RSS Template

The RSS template component is stored in Oracle Content Management and listed on the Components page.

  1. Scroll or search to find the RSS template component.

  2. Click the RSS template component title to open the component.

    RSS template component structure

  3. Click assets to open the assets folder.

  4. Click template.xml to open the xml file.

  5. Review the file and click Edit to edit the file, or download to edit offliine.

The template.xml file substitutes values into the XML using a Mustache-inspired syntax. There are a few built-in Mustache extensions (lambdas) that Oracle Content Management adds to help you when creating the RSS XML:

Extension Description
{{#fnLowerCase}} Transforms the argument into lower case.
{{#fnNativeLink}} Creates a native link from a CaaS link for use with digital assets.
{{#fnRssDate}} Converts from a CaaS date value to an RSS date value.
{{#fnTrim}} Remove the leading and trailing whitespace from the argument value.
{{#fnUpperCase}} Transforms the argument into upper case.