We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27716
    • 126 Posts
    Looking for a simple straight forward solution to making a Media RSS feed.

    Have tried using standard ditto / Jot xml feed, but doesnt validate as MRSS.

    Any ideas?
      • 7231
      • 4,205 Posts
      You need to use ditto with a custom template for the mrss format. You can also create a custom format file (look at /assets/snippets/ditto/formats for examples).

      In looking at the specs you will need to use additional snippet (or phx modifiers) to get data like file size etc..:

      <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
      <channel>
      <title>Song Site</title>
      <link>http://www.foo.com</link>
      <description>Discussion on different songs</description>
          <item>
              <title>These songs make me think about blah</title>
              <link>http://www.foo.com/item1.htm</link>
              <media:content url="http://www.foo.com/band1-song1.mp3" 
              fileSize="1000" type="audio/mpeg" expression="full">
              <media:credit role="musician">member of band1</media:credit>
              <media:category>music/band1/album/song</media:category>
              <media:rating>nonadult</media:rating>
              </media:content>
              <media:content url="http://www.foo.com/band2-song1.mp3" 
              fileSize="2000" type="audio/mpeg" expression="full">
              <media:credit role="musician">member of band2</media:credit>
              <media:category>music/band2/album/song</media:category>
              <media:rating>nonadult</media:rating>
              </media:content>
              <media:content url="http://www.foo.com/band3-song1.mp3" 
              fileSize="1500" type="audio/mpeg" expression="full">
              <media:credit role="musician">member of band3</media:credit>
              <media:category>music/band3/album/song</media:category>
              <media:rating>nonadult</media:rating>
              </media:content>
          </item>
      </channel>
      </rss>
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]