You are here

README.txt in Feeds Atom 6

Same filename and directory in other branches
  1. 7 README.txt
OVERVIEW

This module parses a custom payload inside of an Atom wrapper.

It requires the feeds module.

It is spaces / groups aware.

Here is an example of what it parses - the payload can be seen in the <properties> and <field> area

<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>drupal.makerlab.org | Atom</title>
  <link href="http://drupal.makerlab.org"/>
      <link rel="hub" href="http://drupal.makerlab.org/pubsubhubbub/endpoint" />
    <link rel="self" href="http://drupal.makerlab.org/atom-test" />
    <updated>2010-05-28T15:19:40-07:00</updated>
  <generator uri="http://drupal.makerlab.org">drupal.makerlab.org</generator>
  
<entry>
  <title>Hello Group</title>
  <id>306</id>
  <updated>2010-05-28T15:11:37-07:00</updated>
  <published>2010-05-28T15:11:37-07:00</published>
  <author>
    <name>hello</name>
  </author>
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns">
  <entity xmlns="http://drupal.org/" type="node" bundle="group">
    <title>Hello Group</title>
    <properties>
      <nid>306</nid>
      <type>group</type>
      <uid>1</uid>
      <status>1</status>
      <created>2010-05-28T15:11:37-07:00</created>
      <changed>2010-05-28T15:11:37-07:00</changed>
      <comment>2</comment>
      <promote>1</promote>
      <vid>306</vid>
      <revision_uid>1</revision_uid>
      <title>Hello Group</title>
      <body>Groups are the bomb.</body>
      <teaser>Groups are the bomb.</teaser>
      <revision_timestamp>1275084697</revision_timestamp>
      <format>1</format>
      <name>hello</name>
      <data>a:1:{s:13:"form_build_id";s:37:"form-a78cd812f8f75cb0c1ac8fdc9d1c9ebe";}</data>
      <og_description>group</og_description>
      <og_directory>1</og_directory>
      <og_public>1</og_public>
      <last_comment_timestamp>1275084697</last_comment_timestamp>
    </properties>
  </entity>
</rdf:RDF>
</entry>


<entry>
  <title>hello</title>
  <id>308</id>
  <updated>2010-05-28T15:19:40-07:00</updated>
  <published>1969-12-31T16:33:30-08:00</published>
  <author>
    <name>hello</name>
  </author>
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns">
  <entity xmlns="http://drupal.org/" type="node" bundle="story">
    <title>hello</title>
    <properties>
      <nid>308</nid>
      <type>story</type>
      <uid>1</uid>
      <status>1</status>
      <created>1969-12-31T16:33:30-08:00</created>
      <changed>2010-05-28T15:19:40-07:00</changed>
      <comment>2</comment>
      <promote>1</promote>
      <vid>308</vid>
      <revision_uid>1</revision_uid>
      <title>hello</title>
      <body>welcome to the world of content </body>
      <teaser>welcome to the world of content </teaser>
      <log>Created/updated by FeedsNodeProcessor</log>
      <revision_timestamp>1275085180</revision_timestamp>
      <format>1</format>
      <name>hello</name>
      <data>a:1:{s:13:"form_build_id";s:37:"form-a78cd812f8f75cb0c1ac8fdc9d1c9ebe";}</data>
      <og_public>1</og_public>
      <last_comment_timestamp>1275085180</last_comment_timestamp>
    </properties>
    <field type="text" name="field_superlative">
      <field-instance>
        <column name="value">super</column>
      </field-instance>
    </field>
  </entity>
</rdf:RDF>
</entry>

</feed>

HOW TO USE:

1) Add and activate the module
2) Go to feeds management ( http://../admin/build/feeds ) and add a custom feed manager or override the default feed manager
3) Edit your feed manager
4) Set your feed parser to FeedATOMRDFParser
5) Set your feed processor to FeedATOMRDFProcessor
6) Find yourself a feed like the above ( the above is produced by the views_atom module )
7) Make a feed - a feed is an ordinary content object - so just go to content making and then make a feed.
8) The title of the feed you are making does not matter.
9) The link of the feed you are making should point to the RDF blob like above. 
10) Import the feed!


File

README.txt
View source
  1. OVERVIEW
  2. This module parses a custom payload inside of an Atom wrapper.
  3. It requires the feeds module.
  4. It is spaces / groups aware.
  5. Here is an example of what it parses - the payload can be seen in the and area
  6. drupal.makerlab.org | Atom
  7. 2010-05-28T15:19:40-07:00
  8. drupal.makerlab.org
  9. Hello Group
  10. 306
  11. 2010-05-28T15:11:37-07:00
  12. 2010-05-28T15:11:37-07:00
  13. hello
  14. Hello Group
  15. 306
  16. group
  17. 1
  18. 1
  19. 2010-05-28T15:11:37-07:00
  20. 2010-05-28T15:11:37-07:00
  21. 2
  22. 1
  23. 306
  24. 1
  25. Hello Group
  26. Groups are the bomb.
  27. Groups are the bomb.
  28. 1275084697
  29. 1
  30. hello
  31. a:1:{s:13:"form_build_id";s:37:"form-a78cd812f8f75cb0c1ac8fdc9d1c9ebe";}
  32. group
  33. 1
  34. 1
  35. 1275084697
  36. hello
  37. 308
  38. 2010-05-28T15:19:40-07:00
  39. 1969-12-31T16:33:30-08:00
  40. hello
  41. hello
  42. 308
  43. story
  44. 1
  45. 1
  46. 1969-12-31T16:33:30-08:00
  47. 2010-05-28T15:19:40-07:00
  48. 2
  49. 1
  50. 308
  51. 1
  52. hello
  53. welcome to the world of content
  54. welcome to the world of content
  55. Created/updated by FeedsNodeProcessor
  56. 1275085180
  57. 1
  58. hello
  59. a:1:{s:13:"form_build_id";s:37:"form-a78cd812f8f75cb0c1ac8fdc9d1c9ebe";}
  60. 1
  61. 1275085180
  62. super
  63. HOW TO USE:
  64. 1) Add and activate the module
  65. 2) Go to feeds management ( http://../admin/build/feeds ) and add a custom feed manager or override the default feed manager
  66. 3) Edit your feed manager
  67. 4) Set your feed parser to FeedATOMRDFParser
  68. 5) Set your feed processor to FeedATOMRDFProcessor
  69. 6) Find yourself a feed like the above ( the above is produced by the views_atom module )
  70. 7) Make a feed - a feed is an ordinary content object - so just go to content making and then make a feed.
  71. 8) The title of the feed you are making does not matter.
  72. 9) The link of the feed you are making should point to the RDF blob like above.
  73. 10) Import the feed!