Over a million developers have joined DZone.

Example Code for a Customized RSS-Feed

DZone's Guide to

Example Code for a Customized RSS-Feed

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

 A short code snippet for the customized RSS-Feed on this Google-Blogger site. I simply added the below code to a gadget to yield a tailored RSS-Feed in the sidebar. Most of the code was grabbed from the Google Code Playground.

<style type="text/css">
.gf-title {display:none;}
.gf-relativePublishedDate{font:9pt arial;}
.gf-snippet {font:10pt arial; padding-top:5px;}
.gfc-resultsHeader {display:none;}
<img src="http://www.alpinesicherheit.at/analyseberg/logo_landtirol_sw.jpg" alt="Land Tirol" align="top-left" border="4" height="40" width="40">
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
    <script type="text/javascript">
    *  How to use the Feed Control to grab, parse and display feeds.
    google.load("feeds", "1");
    function OnLoad() {
      // Create a feed control
      var feedControl = new google.feeds.FeedControl();
      // Add feed.
      // Draw it.
    </script><script src="http://www.google.com/uds/?file=feeds&v=1" type="text/javascript"></script><link href="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.css" type="text/css" rel="stylesheet"><script src="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.I.js" type="text/javascript"></script>
  <span style="font-family: Arial; font-size: 1.2em; border: none;">
    <div id="content">Loading...</div></span>

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.


Published at DZone with permission of Kay Cichini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}