ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Create an xml datafeed

July 01, 2012 3:53pm

Subscribe [3]
  • #1 / Jul 01, 2012 3:53pm

    pixelcamp

    26 posts

    Hi,

    anyone know off hand if its fairly straightforward to create an xml data feed with EE?
    Its for a wine listing website, to display fields like:

    <wine-name>entry</wine-name >
    entry</price>

    assuming this could be done with the RSS module
    but would be good if not a massive job to automatically create this data from a product as it is entered by the author,
    ie it takes the the name and price for use on the xml feed
    rather than having to first create the product entry and
    then,
    manually recreating the entry as the xml feed via rss module
    Thanks

  • #2 / Jul 01, 2012 3:57pm

    Andrew Fairlie

    126 posts

    This is very easy, it’s just a case of making a template as XML rather than HTML.

    You could do something such as:-

    {exp:channel:entries channel="ch_wine"}
    <wine>
      <wine-name>{title}</wine-name>
      <wine-price>{fi_wine_price}</wine-name>
    </wine>
    {/exp:channel:entries}

    This would work and be constantly updated.

    You probably wont even need the RSS module. Just a typical template..

  • #3 / Jul 01, 2012 4:04pm

    pixelcamp

    26 posts

    Thanks Andrew

  • #4 / Jul 02, 2012 10:33am

    Shane Eckert

    7174 posts

    Hey pixelcamp,

    I am glad to see that Andrew was able to help you out.

    I would ask that technical support questions be asked in the Technical Support or Community forums. Pre-Sales is more for exploring EE rather than getting help.

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases