By mrmachine on
i haven't seen a simple answer to this question anywhere:
from where are the drupal html headers generated, specifically the autodiscovery URL?
i need to change this:
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://blog.machinehasnoagenda.com/feed" />
to this:
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/machinehasnoagenda" />
i guess this means replacing a variable with the static information above - but i've searched relentlessly and can't find where to do this ... shouldn't it be set in xtemplate file (i got the code above from "view source" in firefox)?
Comments
how to change autodiscovery links to point to feedburner SOLVED
well, here it is:
1. open
modules/node.modulein your editor of choice.2. at around line 1619, find this code:
and replace it with something like this:
5. you're done!
this works for me. i have no idea if this is the proper way to do it.
http://www.machinehasnoagenda.com
What about multi-site setups
What about multi-site setups where many domains share the same module? I can't hardcode the feedburner href because all the sites will inherit this.
-zach
------------------------
harkey design
: z
Here is another solution
Here is another solution that can be done at the template level.
In your page.tpl.php, replace
with
I think it's better because it doesn't require hacking node.module and also works for multi-site setups.
-zach
------------------------
harkey design
: z
Works very well, thanks
This works great. For those you new to PHP (or rusty like me) here's a link on how to get this to work for mult-sites using arrays:
http://us2.php.net/manual/en/function.str-replace.php#60628
Yes Great Answer
This worked like a charm in v 5.x! Now I just need to figure out how to get the rss feed link onto all pages.
rss feed link on all pages
Any luck with this? i've not seen how to change the rss logo a tythe bottom of my menu on each page to display my feedburner rss vs. my drupal one
uofl forum
Multiple feeds?
What if you have different feed for different pages?
How do you add another internal drupal feed link that I want to replace with another feedburner link to that feed?
Instead of hacking core, the
Instead of hacking core, the recommended solution is to use the FeedBurner module.