This patch allows users to exclude certain node types from RSS feeds in Admin > Settings > RSS feed settings.
Open to suggestions. Might help here http://drupal.org/node/28337.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | rss_0.patch | 2.36 KB | nickl |
| rss.patch | 2.18 KB | RobRoy |
Comments
Comment #1
dries commentedWhat is the use case for this feature? Why would you want to exclude certain node types? Examples?
The way to fix this is to use node-level permissions (which has a performance cost). The proposed patchbreaks other settings. If I configure my RSS feed to show 10 items, and if 9 out of 10 items are of a node type that is to be excluded, there will only be 1 item in the RSS feed. To fix this, we need to exclude the nodes at the SQL level so that 10 correct nodes are returned ...
Comment #2
nickl commentedPatch Bingo!
Could be an usability enhancement?
Rerolled to fresh head.
Building proper select options from node_type object array.
Filtering excluded types at the sql level to return feed_default_items number of nodes excluding feed_excluded_node_types.
Comment #3
boris mann commentedYeah, I'd like to see a use case for this as well that applies to core. My instinct is to say "use Views".
Comment #4
RobRoy commentedNow that I know a bit more about Views, marking this fixed. There is a patch at http://drupal.org/node/62007 regarding adding an 'access RSS feed' perm, let's work on that.
Comment #5
(not verified) commented