Hi there,

I have the following issue.
I use views to create a geolocation results display and I wish to attach an rss feed to the view.

Everything works fine except for the enclosure image media tag.

When creating a normal vews rss feed on the normal db I get the usual enclosure tag:
eg:

 <item> <title>The Ritz-Carlton Berlin</title>
 <link>http://www.xxx.info/12345</link>
 <description>Erleben Sie das The Ritz-Carlton, Berlin – ein unvergessliches 5-Sterne-Superior-Hotel, direkt am Potsdamer Platz gelegen und nur wenige Schritte von unzähligen Shopping- und Unterhaltungsmöglichkeiten entfernt. Das Luxushotel verfügt über einzigartige Räumlichkeiten und bietet einen anspruchsvollen Service. Als Gast unseres Hauses können Sie sich in der Ruhe und Abgeschiedenheit des Wellness…</description>
 <comments>http://www.ritzcarlton.com</comments>
 <enclosure url="http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10288/pictures/picture_10288_ritz_berlin_00122_vert_x518_front.jpg" length="9775" type="image/jpeg" />
 <guid isPermaLink="false">12345</guid>
</item>

Namely:

<enclosure url="http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10288/pictures/picture_10288_ritz_berlin_00122_vert_x518_front.jpg" length="9775" type="image/jpeg" />

Now when I use the solr_database to create a view my enclosure element looks like this:

<enclosure> &lt;enclosure url=&quot;http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10330/pictures/picture_10330_hasir_mitte1.jpg&quot; length=&quot;8127&quot; type=&quot;image/jpeg&quot; /&gt;
</enclosure>

So it displays html and the entire tag again inside the tag...

How can I fix this issue?

I am using:

Views RSS 7.x-2.0-rc3
Views RSS: Media (MRSS) Elements 7.x-1.x-dev

I create a view - select RSS Feed - Fields as display type.
Attach the fields I require - including an image field.
Set the formatter as RSS enclosure element
select the correct image preset:

http://drupal.org/files/rss_d_stuttgart.png

Multiple field settings:

display all values in same row: yes
Simple seperator 'blank'
display 1 value starting from 0

Style Settings - nothing ticked
Reqrite results: nothing ticked.

CommentFileSizeAuthor
rss_d_stuttgart.png2.67 KB-ds-

Comments

-ds-’s picture

Looks like it may be an issue with the format_xml_elements function - maybe it's being called twice in this case, at least the result looks that way ...

-ds-’s picture

Issue summary: View changes

edit

damienmckenna’s picture

Project: Views RSS: Media (MRSS) Elements » Advanced Views RSS Feed

Moving this to the main module as I merged the functionality there.

damienmckenna’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev