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.
As the title says. It might be nice to add a feed.module to Drupal that consolidates all feed-related info in one place, so that this can be toggled for different types of nodes all in one place.
Comment | File | Size | Author |
---|---|---|---|
#10 | feeds_1.patch | 10.27 KB | walkah |
#9 | feeds_0.patch | 10.27 KB | walkah |
#6 | feeds.patch | 10.25 KB | walkah |
#5 | node-feed-length.patch | 3.95 KB | walkah |
#2 | node_4.module | 70.01 KB | Boris Mann |
Comments
Comment #1
Boris Mann CreditAttribution: Boris Mann commentedI love the fact that this has been active forever :P
One day we will have a feed.module to rule them all...
Comment #2
Boris Mann CreditAttribution: Boris Mann commentedWhat the heck, let's make this critical. Google launched blogsearch today -- it reads feeds, so if you're not outputting full feeds, it means Google's not indexing everything you put out.
Attached is an updated node.module which sets options for this, as well as includes an option for RSS or Atom feeds (but doesn't implement this yet). If someone could refactor and turn into a patch, we could still get this into 4.7.
Comment #3
Dries CreditAttribution: Dries commentedWould this be your first core patch? ;)
Comment #4
Boris Mann CreditAttribution: Boris Mann commentedIt would/will be if I were better at rolling patches against HEAD and didn't stuff so much stuff into it...
...back to non-coding work.
Comment #5
walkah CreditAttribution: walkah commentedso, Boris is a wimp... but this is a pretty cool feature. attached is a re-worked patch. all working 'n' stuff.
Comment #6
walkah CreditAttribution: walkah commentedat Dries' request - here's an updated patch (where I hereby admit to sneaking in some other things I'd wanted to do). Hopfeully it's worthy to be snuck in at the deadline. (it's even still the 15th in .be for another couple minutes).
So this patch does the following:
* adds a "feed settings" section to admin/settings where 2 new settings are introduced:
* number of items per feed
* default length of feed descriptions (title only, teaser, full)
* patches all of core to obey the above - including the new aggregator (out) feeds
* adds support for adding namespaces in _nodeapi('rss item') - which means things like iTunes RSS and yahoo's media rss can be implemented by the appropriate modules (i.e. audio.module)
* includes some additional info in the default node feed - specifically the element (links directly to comments) - and dc:creator - to show node author information.
Comment #7
sepeck CreditAttribution: sepeck commented+1 on the features. This is one of those things that gets mentioned and or requested in the forums enough and I sure would like it.
Comment #8
walkah CreditAttribution: walkah commentedoh yeah, i forgot to mention one other little thing, that I think is nice... if you're using the teaser length (as is the default) it inserts a read more link in the description... which makes it obvious to your readers that there is more to the post :)
(and a good way to drive traffic back to your site, i suppose)
Comment #9
walkah CreditAttribution: walkah commentedd'oh. cleaning up some little boo boos in that last version. should be commit ready now - if i may be so bold ;)
Comment #10
walkah CreditAttribution: walkah commentedARGH! sorry for the spam, but nobody's gonna like array_merge'ing an array and a string. *sigh*
last one i promise.
Comment #11
m3avrck CreditAttribution: m3avrck commentedPatch applies cleanly and looks good to me. One little bug I found (not related to this patch but feeds in general so should be addressed), is that the top of my feeds I have
Note ... should be a space in there. Fix that bug with this patch and I'll get it a +1 ;)
Comment #12
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks. Please update the module upgrade notes so module author can take advantage of the new settings!
Comment #13
Boris Mann CreditAttribution: Boris Mann commentedComment #14
faolcer CreditAttribution: faolcer commented