Having installed CommentsRSS I now get RSS feed icons on every page which is a simple node (whereas before I only got them on the Home Page and Forum page).
But now, when I click on any RSS feed icons (including the original ones) the browser tries to go to http://rss.xml. I am running Drupal 7.13. The theme I am using is based on Danland 7.x-1.0. I have currently got CommentRSS version 7.x-2.x-dev installed, but I initially installed 7.x-2.4 which generated the same url. I have flushed the cache numerous times.
Is this a bug, or is there something I am not setting up?

Comments

Peters196’s picture

The short answer to my own question is: that is what i specify in my in page.tpl.php

<div class="feed-wrapper">
		<a href="<?php print $base_path; ?>/rss.xml"><img src="<?php print $base_path; ?>/misc/feed.png" width="16" height="16" title="<?php print $site_name; ?> RSS" alt="Syndicate content"/>
	</div>

If I understand the description on http://drupal.org/project/commentrss
the url should be sitename/crss/node/n where n is the node number of the page that it is on, so I need to edit the above to do that.

Question 1: What variable can I use to give me the node number of the page I am on? (I have tried $node but that returns the error:undefined).

Question 2: Does CommentRSS work with pages which haven't got a node number such as the forum page and pages which have been given a url alias and clean-urls is enabled?

rodrigoeg’s picture

Issue summary: View changes

@Peters196, you can replace your code by only this one below:

<div class="feed-wrapper">
  <?php print $feed_icons; ?>
</div>

The $feed_icons variable will have everything you need, because the module already creates the link.

I think it is not a bug, because it is working with the bartik theme (Drupal core theme), but some maintainer can confirm.