Display the files attached on a node

gagarine - April 3, 2008 - 09:32
Project:Atom
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

On the normal drupal feed (rss) the attachment (image, files, etc) are present in the feed when you select "full node display" but not with atom feed.

The rss feed:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://widget.pierrecrot.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Migro widget - </title>
<link>http://widget.pierrecrot.com</link>
<description></description>
<language>en</language>
<item>
<title>Action 2</title>
<link>http://widget.pierrecrot.com/?q=node/2</link>
<description>&lt;p&gt;Hello sdflj sdf&lt;/p&gt;

</description>
<comments>http://widget.pierrecrot.com/?q=node/2#comments</comments>
<pubDate>Wed, 02 Apr 2008 06:41:51 -0600</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">2 at http://widget.pierrecrot.com</guid>
</item>
<item>
<title>Actions 1</title>
<link>http://widget.pierrecrot.com/?q=node/1</link>
<description>&lt;p&gt;Mon action&lt;/p&gt;

</description>
<enclosure url="http://widget.pierrecrot.com/files/aboutus.jpg" length="59724" type="image/jpeg" />   ## HERE AN ATTACHMENT ##
<pubDate>Wed, 02 Apr 2008 06:25:06 -0600</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">1 at http://widget.pierrecrot.com</guid>
</item>
</channel>
</rss>

The atom feed:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Migro widget</title>
  <link rel="alternate" type="text/html" href="http://widget.pierrecrot.com"/>
  <link rel="self" type="application/atom+xml" href="http://widget.pierrecrot.com/?q=atom/feed"/>
  <id>http://widget.pierrecrot.com/?q=atom/feed</id>
  <updated>2008-04-02T06:39:58-06:00</updated>
  <entry>

    <title>Action 2</title>
    <link rel="alternate" type="text/html" href="http://widget.pierrecrot.com/?q=node/2" />
    <id>http://widget.pierrecrot.com/?q=node/2</id>
    <published>2008-04-02T06:41:51-06:00</published>
    <updated>2008-04-02T06:41:51-06:00</updated>
    <author>
      <name>admin</name>

    </author>
    <summary type="html"><![CDATA[<p>Hello sdflj sdf</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Hello sdflj sdf</p>
    ]]></content>
  </entry>
  <entry>
    <title>Actions 1</title>
    <link rel="alternate" type="text/html" href="http://widget.pierrecrot.com/?q=node/1" />
    <id>http://widget.pierrecrot.com/?q=node/1</id>

    <published>2008-04-02T06:25:06-06:00</published>
    <updated>2008-04-02T06:39:58-06:00</updated>
    <author>
      <name>admin</name>
    </author>
    <summary type="html"><![CDATA[<p>Mon action</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Mon action</p>
    ]]></content>

  </entry>
</feed>

I use the feed to communicate with a flash widget so i need the image...

Thanks for your module :)

#1

deekayen - April 3, 2008 - 13:05

Valid request.

[insert standard "I'm busy" statement here] I don't know when I'll get to it.

#2

gagarine - April 4, 2008 - 07:58

Thanks :)

#3

Dave Reid - September 21, 2009 - 02:01
Status:active» duplicate

99% sure that #579286: XML output completely broken and nodes rendered incorrectly is the underlying problem.

 
 

Drupal is a registered trademark of Dries Buytaert.