Views 2 doesn't let you add CCK fields to a feed (I have no idea why it can't). This XML export has no problem with that, but it forces an XML file to be downloaded. Is there anyway to just have a url with the XML data displayed as a feed in the browser instead of having to download an actual XML file?

This would solve alot of problems for me and others in my same predicament.

Thanks!

Comments

neclimdul’s picture

Try settings the filename to blank. This is an undocumented behavior but since you seem to have a use for it I might document it.

jjjames’s picture

WOW! This is great! You don't know how long i've been struggling trying to find a simple way to put fields into a simple xml feed. I can't believe this wasn't documented! I know many will really appreciate it. I'm gonna link this post to some others that I've found trying to do this very thing. Great work on the module btw :)
thanks again!

jjjames’s picture

Is it possible to strip the extra data?

It shows:

<field_image_fid>
<span  class=" imagefield-formatter-url">http://localhost/mysite.com/drupal-6.9/sites/default/files/Photo 44.jpg</span>
</field_image_fid>

I just want:

<field_image_fid>
http://localhost/mysite.com/drupal-6.9/sites/default/files/Photo 44.jpg
</field_image_fid>

thanks!

asak’s picture

I got here from the thread regarding Views Node Field (http://drupal.org/node/361317). This could be another solution, but it seems that it isn't possible to use VBP to set custom titles for the fields, so that i can get something like:

<image>http://....</image>
<sku>333</sku>

Is that correct? could this be done using custom views themeing?

no2e’s picture

subscribed

neclimdul’s picture

This issue is about a feed that is not delivered as a file. Please leave it at that.

To quickly address the first issue, I've mentioned in other issues that I want to avoid having the exporter touch the output. There are several on going issues in the Drupal 5 release because of stripping and I'd like to not have that problem in the Drupal 6 release.

I'd say this might be a bug in imagefield but... I'm not sure and its not part of this issue.

neclimdul’s picture

Committed some code to specifically support this on XML output.

neclimdul’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Status: Active » Fixed
jjjames’s picture

Cool :) Do you mean to support XML feed inside browser or stripping of the span tags?
Thanks

neclimdul’s picture

See #6.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Oleksa-1’s picture

Could you give me any hint, how can i use this xml feed from one drupal site on another drupal site. e.g. i have views with two fields TITLE and IMAGE and i make views feed xml (using vbp):

<xml>
−
<node>
−
<field_image_fid>
<a href="/node/1" class="imagecache imagecache-85x64 imagecache-linked imagecache-85x64_linked"><img src="http://www.mysite.ru/sites/new.mysite.ru/files/imagecache/85x64/image.jpg" alt="" title=""  class="imagecache imagecache-85x64" width="43" height="64" /></a>
</field_image_fid>
−
<title>
<a href="/node/1" title="some title" alt="Some alt">Some title</a>
</title>
</node>
</xml>

On another site i enter link for this feed to rss aggregator and get in block only titles without images.
How can i get images as well ?