I've been trying to get an RSS feed working on the book module but without success. Is there a RSS feed for the books?

thanks

Comments

sillygwailo’s picture

Not with just Drupal, but you can create one using the Views module. Actually you can get two kinds of feeds that relate to the book module:

  • one that's a content type feed, that is, all nodes that are of the book content type
  • an RSS feed of a book outline, so any node that belongs to a parent that you pick when creating the view

Both are views that provide a "Page" view. The first you would add as a filter "Node: Type" and choose "book", the second you would add as a filter "Book: Parent" and choose the number of the book you want the children from in the RSS feed. Make sure you choose "RSS: RSS Feed Selector" (so if you add /feed to the end of the URL, you get the RSS feed) as the argument, and that in the filters you include "Node: Published", otherwise it will include unpublished posts.

(Username formerly my full name, Richard Eriksson.)

bd80599’s picture

I was wondering how to implement the same thing - thanks for your post. Also, you help me demystify the views module - thanks again!

-Andrew
http://all.ofthe.info

lyallp’s picture

I want to have an RSS feed on pages within a book, so the RSS represents the book and as new pages are added, the RSS reflects this.

Any suggestions on how this would be arranged?

adam_b’s picture

Make a view which represents the book and all its sub-nodes, and the RSS feed for that view will do what you want.

jeedpi’s picture

Hi,

I faced the same issue and just solved it thanks to the community, so I thought I would share the solution here:
The recipe is to use "RSS Field", and to follow the documentation carefully.
In case you wonder, in the "core item description" field, use "content: body" to get the full article.

If you want to restrict the RSS feed to a book,
1. on the view, create a relationship: "Book: Top level book",
2. add a filter criteria: "Content: Nid="
a. put the node id of the top level page of the book
b. select the relationship you just setup

If you want to get updated articles in the RSS field:
1. As a filter criteria, use "content published" OR "content: has new content"
2. in the core item date field ("RSS field" settings), simply use "content:updated date", instead of "post date".

That's it.

link to the original post