We do a good job of outputting an organge xml icon on the many pages where RSS feeds are available. In addition, we should be including those feeds in the HEAD section using a LINK tag. This makes it easier to subscribe using news aggregator apps.

CommentFileSizeAuthor
#5 project_rss.patch865 bytesgábor hojtsy

Comments

killes@www.drop.org’s picture

Moshe, help me: Which pages need such a link thing?

moshe weitzman’s picture

every time we show a list of issues.

moshe weitzman’s picture

in 5.0, drupal_add_feed() does this for us, i think.

aclight’s picture

Status: Active » Postponed (maintainer needs more info)

I don't think this is a problem any more, is it? It looks to me like the issue listings all have the RSS feed icon. Unless there's a page that's missing them that I can't think of let's mark this fixed.

gábor hojtsy’s picture

Project: Project » Project issue tracking
Version: x.y.z » 5.x-2.x-dev
Component: Issues » User interface
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new865 bytes

Here is a simple patch rolled from a local SVN repository (but should apply to project_issue just fine). The issue here is that although the orange icons are added, the unified link tag based RSS referencing is not used. Using drupal_add_feed() results in the same visual output (Drupal adds in the orange feed icon), but it even allows other modules to collect feed information, display them differently; the theme to alter the presentation, etc. So using this is superior to just displaying an orange feed icon ourselves.

I think this patch/fix is quite straightforward. If you have a feed reading enabled browser like Firefox, Safari or IE7, after you applied this patch, it will offer the issue feed with its standard UI (unlike it did before the patch). I think this is a good improvement.

aclight’s picture

Status: Needs review » Reviewed & tested by the community

Goba pointed me to http://diveintomark.org/archives/2002/06/02/important_change_to_the_link... which has some extra information on what this change provides.

I tested the patch locally and it applies fine, with a bit of offset. The two changes I noticed are:
1. In my location bar on the right side I get the orange RSS icon when I'm at, for example, project/issues/project_issue
2. The orange feed icon is now on a line of its own, instead of being in line with the "#" used for the permalink. I think this looks ugly but I guess there's not anything we can do about that, since this is the default behavior of the theme.

I guess 2 isn't too big of a deal. The code looks good, so I don't see any reason not to commit this.

hunmonk’s picture

Title: Advertise RSS feeds in HEAD section » proper use of drupal_add_feed()
Status: Reviewed & tested by the community » Fixed

committed to 5.x-2.x and HEAD, deployed on d.o, et. all...

gábor hojtsy’s picture

Superb, thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.