Forum Moderators: phranque
I am trying to insert some links (to different websites) into my RSS feed. I don't want the "news items" themselves to be links, however; instead, I want to have a "read more" link *below* each news item that will link to a page of archived news items.
I can't seem to find a simple answer anywhere - maybe there is none?
Any help you could provide would be greatly appreciated.
<item>
<title>This is headline one</title>
<link>http://www.example.com/news/123-1.htm</link>
</item>
<item>
<title>This is headline two</title>
<link>http://www.example.com/news/123-2.htm</link>
</item>
I've tried using the <link> tag, but it doesn't seem to make the links "clickable" in my browser OR the aggregator I am using to preview my feed. (I'm using a stylesheet to format the XML files so that they'll fit with the look of my site when they are pulled up by the browser.)
Here is what I am working with: <snip>
Is it going to be impossible for me to get clickable links in both browsers and RSS aggregators? At this point, I would settle for either...I'm pulling my hair out here. :/
Thanks again!
[edited by: Woz at 4:42 am (utc) on June 17, 2004]
[edit reason] No URLs please, see TOS#13 [/edit]
I am sending you a link to it via sticky mail. I is currently used by people from MyYahoo and other services. It is also used by some private websites.
Again, it is the responsibility of the aggregator to utilize the provided link element. The RSS feed is supposed to provide information with meta data so that the consuming application can format it the way that best suits it.
Do you have any thoughts on how I might make the XML files as pulled up by the browser include clickable links? I've tried inserting HTML tags (<a href...>), but the browser won't read them since they're in the content of an XML file, I guess. I now have the links working OK within my aggregator.
I found this article (http://developer.apple.com/internet/webcontent/xmltransformations.html), but it seems awfully complicated.
~:(
Do you have any thoughts on how I might make the XML files as pulled up by the browser include clickable links?
This is a tough issue. If you are readily giving the information away, and you don't seriously mind that some users won't include the links, then just use RSS as you are and hope for the best.
If you want to make sure they include links, or if you want to enforce any other formatting/presentation aspects of your feed, then you have two choices. The first is to manually police the sites or software that uses the feed. This is not very practical. The other is to provide the feed as javascript or IFrame content instead. This is the primary way that I deliver my feeds.
They are free to the websites that use them. What I get out of it is name recognition and branding.
I actually do plan to have the feed displayed in an iframe (below the calendar) - how would this affect my ability to have clickable links?
how will loading the XML files into an iframe turn them into HTML files?
Sorry I wasn't more clear. It doesn't. What I meant was, if you know the content will be displayed in an IFrame, then you might consider not using RSS/XML at all. When the user clicks the calendar, that link can point to a standard HTML (or php/asp) page.
If you use your own code to create your RSS directly on your site, then you can also create a file to consume your own RSS and deliver it in the html format you want. That is what would go into your iframe. That way the RSS is still available for other uses.