Hi all, I searched the forums but could not find a solution:
I set up drupal 5 with a static front page, with a different area for news (/node aliased as /news with "story" content types), and now only when a user goes to news he has the orange RSS icon in firefox (the link rel=alternate in the tag). Keep in mind this is also important for most RSS readers, which let the user just enter a website's URL, and automatically find the rss link.
What I want is for the link rel=alternate tag to be on all the site's pages, mainly the front page.
Adding the line to page.tpl.php isn't good, because then it appears twice on the news page, which shows as two feeds.
Is there a way to pull this off?
Thanks in advance!
Comments
You can do something like
You can do something like this:
Let's say your news page url is yoursite.com/news (if it's a taxonomy term, let's assume "1"), put the output in page.tpl.php only but with the php if statement for some simple logic
If 1 is a string in the url, change it to that. You can do
<?php print arg(1) ?>to see what's output on your news page to know for sure.hope this helps.
thanks, I'll get
thanks, I'll get experimental.
Thank you very much!
wound up using:
<?php if (arg(1) > '0') : ?><link rel="alternate" type="application/rss+xml" title="XXXXXXXX" href="/rss.xml" /><?php endif; ?>Works perfectly, thank you very much!