EllisLab text mark
Advanced Search
     
Create an xml datafeed
Posted: 01 July 2012 03:53 PM   [ Ignore ]
Joined: 2010-10-30
42 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

 
Posted: 01 July 2012 03:57 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-07-01
139 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..

 Signature 

Andrew
Web Designer at Red Carrot

 
Posted: 01 July 2012 04:04 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Thanks Andrew

 
Posted: 02 July 2012 10:33 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
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,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade