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.

XML datafeed

August 13, 2012 4:19pm

Subscribe [1]
  • #1 / Aug 13, 2012 4:19pm

    pixelcamp

    26 posts

    Hi,

    I am working on a site listing wines, these will be displayed as a list of entries (maybe up to 200) with pagination.
    The site will also require an XML datafeed for third party websites which I will create custom fields for in the Wine List Channel so this can be automatically populated in the feed. Would this work by outputting to an XML template and using the custom field tags from the main Wine List Channel to populate (wine-name / vintage / bottle-size etc as below)?

    <datafeed>
    <list>
    <wine>
    <wine-name>Name Here</wine-name>
    $00.00</price>
    <vintage>year</vintage>
    <bottle-size>75cl</bottle-size>
    <link>http://www.website/wines/wine-entry</link>
    </wine>
    </list>
    </datafeed>

    Would it be possible to list all wines here (200 and maybe more) without causing strain on the server or would pagination be required, even though it will be read by other websites and not displayed as a styled page?

    Thanks

  • #2 / Aug 14, 2012 5:20pm

    Kevin Smith

    4784 posts

    Hi pixelcamp,

    Yes, you’ve got the right idea. All entries will be output in a single feed, no pagination. I can’t really speak to the fidelity of the example above (and I know it’s just an example), but if you stick with the concepts in the RSS Module portion of the user guide, you should be all set!

  • #3 / Aug 14, 2012 5:24pm

    pixelcamp

    26 posts

    Thanks Kevin

  • #4 / Aug 15, 2012 3:15pm

    Dan Decker

    7338 posts

    Hi pixelcamp,

    If you need anything else, just let us know!

    Thanks,

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

ExpressionEngine News!

#eecms, #events, #releases