MTRSSFeedDate

April 24, 2003 - updated February 8, 2006 (Download)

The MTRSSFeedDate plugin enhances the mt-rssfeed plugin by giving you access to dates embedded in an RSS Feed. The plugin supports dates in the RSS 0.9x/2.0 as well as 1.0 format.

Important: In order to use this plugin, you must first install and configure the mt-rssfeed plugin!

  • MTRSSFeedDateExists
    Conditional tag that is true if the RSS contains date information for the feed.
  • MTRSSFeedDate
    Returns the publishing date of the RSS feed, if present.
    • format=”%X”
      You can specify format=”raw” to display the date as it is in the RSS file, or use one of the MovableType Date Tag Formats.
  • MTRSSFeedItemDateExists
    Conditional tag that is true if the RSS contains date information for the current feed item.
  • MTRSSFeedItemDate
    Returns the publishing date of the current RSS feed item, if present.
    • format=”%X”
      You can specify format=”raw” to display the date as it is in the RSS file, or use one of the MovableType Date Tag Formats.

Example

The following template code displays an RSS feed with publishing dates, if present:

<MTRSSFeed file="http://www.movabletype.org/index.xml">
<h2><$MTRSSFeedTitle$></h2>
<ul>
<MTRSSFeedItems lastn="5">
    <li><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a>
    <MTRSSFeedItemDateExists>
    <br />Published on <MTRSSFeedItemDate>
    </MTRSSFeedItemDateExists>
    </li>
</MTRSSFeedItems>
</ul>
</MTRSSFeed>