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.
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
Comment #1
Peters196 CreditAttribution: Peters196 commentedThe short answer to my own question is: that is what i specify in my in page.tpl.php
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?
Comment #2
rodrigoeg CreditAttribution: rodrigoeg at CI&T commented@Peters196, you can replace your code by only this one below:
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.