Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice if the module could support per-book feeds: all pages in the book could carry the feed, which would list updates within the book (or to child pages below a given page), and only there, so it would be less generic than the overall node feed at rss.xml
Comment | File | Size | Author |
---|---|---|---|
#8 | book_feed_d5.patch | 3.76 KB | fgm |
#4 | book.module_24.patch | 2.66 KB | fgm |
#1 | book.module_22.patch | 1.98 KB | fgm |
Comments
Comment #1
fgmFWIW, here is a patch rolled against Drupal 5.1. I haven't checked book.module in v6 yet...
It could be both simpler and more efficient if node_feed could take an array of nids in addition to a query. It could accept both by checking the param type: this is something it already does by providing a default query if none is supplied.
That way,
book_feed
could just build a list of nodes usingbook_recurse
without adding yet another point where an RSS feed is generated.Comment #2
fgmForgot to set status and mention that you can check it in action at http://www.php-gtk.eu/handbooks
Comment #3
cburschkaI'd like this.
The patch is probably broken by now; I'll test it shortly.
Comment #4
fgmHere is a patch rerolled agains today's HEAD.
Comment #5
catchstill applies with a lot of offset, won't get into D6 though.
Comment #6
catchdrupal_add_css() no longer goes in !may_cache - also this would be quite easy to do in views. Since views may end up in core in D7, I'd rather see this dealt with alongside node_type views and rss feeds.
Comment #7
buzink CreditAttribution: buzink commentedA book feed should be standard functionality, like a group feed, taxonomy feeds, etc.
I reworked the code in the patch above for drupal 6 (see below). There's only one big problem, the book feeds seem to show only one item (the first bookpage from that point in the hierarchy). Anyone?
---
If you want to add feeds per book, do the following.
In book.module, below
add
(this makes the link to the feed appear)
below
add
(this makes the link call the bookfeed-function)
Now add the bookfeed function to the file book.pages.inc:
Comment #8
fgmFWIW, since this was a D5 issue initially, here is the patch rerolled (and fixed !) for DRUPAL-5--21.
Not setting for review to prevent PIFR from testing it against D7.