SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot pavanpuligandla's Avatar
    Join Date
    Sep 2008
    Location
    hyderabad
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Designing RSS for a website

    Hi,
    i developed a shopping cart website, and now my client is asking for RSS feeds,
    i dont know much about RSS and XML feeds, how can i do this?
    when i opened sitepointforums.com in firefox web browser, on the address bar to the right i can see an icon "RSS FEEDS", in the same way when users open my website also will it be visible if i enable RSS feeds?

    how to develope this RSS feeds for a website(only for 2 pages EVENTS and NEWS).can anyone please help me out..

    Many Thanks.
    PHP Professional turned ASP.NET Professional

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In order to make the orange icon appear in the address bar, you need to add the following line of code into the <head> section of your page:

    HTML Code:
    <link rel="alternate" href="http://www.example.com/feed.xml" type="application/rss+xml" title="Feed Title" />
    Here's a very basic example of how an RSS feed should be structured:

    Code XML:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
        <channel>
            <title>Feed Title</title>
            <link>http://www.example.com/feed.xml</link>
            <description>Feed description</description>
            <language>en-gb</language>
            <lastBuildDate>Wed, 10 Sep 2008 12:54:55 EDT</lastBuildDate>
            <item>
                <title>Title of first item</title>
                <description>Description of first item</description>
                <link>http://www.example.com/firstitem.html</link>
                <pubDate>Wed, 10 Sep 2008 12:32:15 EDT</pubDate>
            </item>
            <item>
                <title>Title of second item</title>
                <description>Description of second item</description>
                <link>http://www.example.com/seconditem.html</link>
                <pubDate>Wed, 10 Sep 2008 12:32:15 EDT</pubDate>
            </item>
        </channel>
    </rss>

    For a more in-depth tutorial I'd suggest doing a Google search, there are loads of resources to help you. If you have any more problems just post back here

  3. #3
    SitePoint Zealot pavanpuligandla's Avatar
    Join Date
    Sep 2008
    Location
    hyderabad
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes,
    Just added the above line, i can see the orange icon.
    now i'm designing RSS feeds for my website.
    Many Thanks for the comeback..
    Will definitely post if i encounter any problems.
    PHP Professional turned ASP.NET Professional

  4. #4
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    This post I made earlier could be helpful when you want to produce the actual feed...

    http://www.sitepoint.com/forums/showpost.php?p=4189808

  5. #5
    SitePoint Zealot pavanpuligandla's Avatar
    Join Date
    Sep 2008
    Location
    hyderabad
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the code SJH
    and for tutorials AlexDawson,
    i've a doubt regarding this, when we've a LIVE BOOKMARK of websites in a web browser, then why should we go for these RSS feeds?
    The pupose is to make websites users stay tuned with our websites, right.
    Then he/she can simply stay tuned to our website by bookmarking the site,
    then what is the use of these RSS feeds?
    can you please let me know this.
    Many Thanks,
    PHP Professional turned ASP.NET Professional

  6. #6
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Live bookmarks make use of RSS feeds, so without an RSS feed, nobody can add a live bookmark of your site.

  7. #7
    SitePoint Zealot pavanpuligandla's Avatar
    Join Date
    Sep 2008
    Location
    hyderabad
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Live bookmarks make use of RSS feeds, so without an RSS feed, nobody can add a live bookmark of your site.
    Okay,
    understood, Thanks for the comeback SJH..
    i now implemented RSS feeds for my website.
    My another question is can i Display 3rd party websites like(BBC, CNN) NEWS on my website?
    If so how can i do this?
    Many Thanks.
    PHP Professional turned ASP.NET Professional

  8. #8
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Well there are scripts that allow you to do this, but to be perfectly honest you are better off not tapping other websites for your own content, it generally makes your website look like it can't come up with its own content and therefore they will avoid and just go straight to the news sources.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •