The attached patch supports views 'feed' selector. Simply enabling it gives all views that have the feed selector an atom feed and an icon.

Downside: atom.module doesn't come with an atom icon, so it just uses the RSS icon. This could easily be fixed by providing an icon with the module.

Downside #2: There ends up being 2 'atom' feeds listed on the view; one global one for the site, and one for the feed itself. The main atom feed should probably only be added if drupal_is_front() is true but I didn't want to force that decision on you.

Upside: Atom feeds a-plenty.

CommentFileSizeAuthor
atom_views_feed.patch6.52 KBmerlinofchaos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eaton’s picture

I'd like to be the first to call this "awesometastic."

deekayen’s picture

Version: 4.7.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Now that I'm actually paying some attention to this module, please re-roll this against DRUPAL-6--1.

deekayen’s picture

Version: 7.x-1.x-dev » 5.x-1.0

Since Views for D6 isn't stable (that I know of), go ahead and roll for D5.

deekayen’s picture

Title: Support the brand spankin' new views feed argument » GHOP #90: Support the new views feed argument
tmadeira’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Assigned: Unassigned » tmadeira

I've started reading the code of views and atom modules and I'll release the new patch soon.

BTW, about the icon:
I'll use the standard feed icon: http://feedicons.com/
Is that OK?

deekayen’s picture

That one is preferred, though use the one that comes with Drupal in the misc directory (feed.png).

add1sun’s picture

task was re-opened due to lack of response and is now claimed by alexandrebfarias.

cwgordon7’s picture

Assigned: tmadeira » Unassigned

Opening task because it's not really claimed by tmadeira.

Etinin’s picture

Assigned: Unassigned » Etinin

Assigning it to myself as it's now claimed by me (alexandrebfarias on Google Code).
Sorry about the delay in upgrading this, but I've been busy with some other things.

webchick’s picture

Assigned: Etinin » Unassigned

Back up for grabs.

merlinofchaos’s picture

Status: Patch (to be ported) » Needs work
kyl191’s picture

Assigned: Unassigned » kyl191

aclight & co. : I'm still here, working on the code. Have one question for now - return theme('feed_icon', url($url)); - As far as I can tell, to fix downside #1, this is where I pass the url for the atom feed icon, right?

As I mentioned to webchick, the going is slow cause I'm not that familiar with PHP - but I'm still going to finish it even if I have to work beyond the ghop deadline.

deekayen’s picture

You haven't given much context, so I'll say, yes theme('feed_icon', url($url)); is correct as long as...

1) $url actually needs to be processed by url() (it hasn't already been through url() already)
2) $url points to the URL of the feed - the place where the feed reader will need to go for the content you're syndicating. the theme function already knows where to find the feed icon when you tell it 'feed_icon'.
3) returning theme(... is the result of a function that should be just processing the feed icon

Put it inside some code and upload it and it'll be much easier to give you a clear answer and help point you in the right direction if it's wrong.

deekayen’s picture

Issue tags: +GHOP

http://drupal.org/project/coder is a decent module for getting automated help on your code if you're still too shy to post a preview patch.

agerson’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Views 2 is now stable. It would be great to have atom integration.

deekayen’s picture

Agreed. This feature is welcomed if someone fixes the patch for 6.x.

XerraX’s picture

subscribing