YOUR FEEDBACK
More on the Software Assembly Question - Do Design Patterns Help?
Yanic wrote: Hi, > UML and MDA are being changed to be more data and doc...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
MXDJ TOP LINKS YOU MUST CLICK ON !


Putting RSS Content into Your Dreamweaver Web Pages
Sharing is good

Digg This!

RSS - Really Simple Syndication - is about sharing content with new audiences. Lots of websites create RSS feeds so that their audiences can get updates using their favorite Aggregators (like NetNewsWire). Other websites collect that content and republish it in new venues, to new audiences, or just in a different medium. That's what syndication is all about -- sharing. And since my mamma always taught me sharing is good, I'm gonna share the secret to putting RSS content onto your web page.

Now, you might have an RSS feed already. However you choose to build that RSS feed -- from RSS DreamFeeder to FeedForAll to a custom script -- the content in the feed is intended to let you reach out to a new audience. That audience has to subscribe to the content, so it might be useful to help them see the sorts of headlines they'll be getting. Consider publishing those headlines on a webpage -- it's easy and helps them make the decision to subscribe to your feed.

You might also want to republish content from other websites. There are lots of sources of RSS content out there. Republishing those feeds on web pages that your audience reads regularly can help to keep them better informed. If the goal of an RSS feed is to find new audiences, putting their content in front of your audience helps achieve the aim of the original publisher (though don't forget to let people know where the headlines came from).

This tutorial will show you how to do both of these things with a simple Dreamweaver extension called RSS Replay.

What You'll Need
First you'll need to download and install the RSS Replay extension. You can get the extension from the RNSoft website at www.rnsoft.com/en/products/rssreplay/ Second, I've written a few example files that you'll want to use so download them from the RNSoft website as well www.rnsoft.com/en/products/rssreplay/content/tutorial/RRPTutorialWDDJ.zip Once you have downloaded the example files and unzipped them you will have a directory called "RRSTutorialWDDJ" that contains a few files. You'll use that directory as the root directory for a website in Dreamweaver. So the next step is to launch Dreamweaver and setup a website with "RRSTutorialWDDJ" as the local root. I am assuming that you know and use Dreamweaver -- which might not be a fair assumption. If these instructions are not specific enough, take a look at the tutorial on RNSoft's website for more details at www.rnsoft.com/en/products/rssreplay/tutorial/

Replaying a Local Feed
Say you've got this website about Dreamweaver called "Dreamweaver News" and you publish an RSS feed of the active issues in the Dreamweaver community. You want to put your feed ("dwnews.rss") onto your web page ("dwnews.html").

So begin by opening the "dwnews.html" file in Dreamweaver.

Select the text that says "Put Replay Here" and delete it. In its place we will put an RSS Replay. Depending on your version of Dreamweaver the icon for RSS Replay is the Insert panel's Media tab or the Media popup in the Common tab (wherever you would normally find the icon for Flash or ActiveX) (see Figure 1).

Click the icon to insert an RSS Replay. An icon is inserted into your layout indicating that you now have a Replay. With that icon selected you should now see the RSS Replay Property Inspector. We'll use the property inspector to configure the RSS Replay.

The property inspector allows you to specify the sources (the URLs of the feed), the CSS style for displaying the content (headlines and stories), the format for display, and the method of transferring the feed.

The next thing you need to do is specify the source of the content you want to display. The feed is an RSS file called "dwnews.rss". Put that into the list of sources by clicking the "Sources" button to display a dialog containing the list of sources. At first, the list will be empty. Click the plus (+) button to add a new source to the list, then select it and enter "dwnews.rss". Then click the "OK" button to close the dialog (see Figure 2).

The next step is to specify the format for displaying the content. RSS Replay comes with 10 formats for displaying content (and you can create your own too). You'll just select one from existing formats in the "Format" menu. Right now the menu indicates that there are "No Settings". Select "Headlines w Stories", which will display the headline and the story associated with that headline (see Figure 3).

Now that you've specified that you'll want to see what the page will look like. RSS Replay provides an in-Dreamweaver preview of the content so that you can better assess how the content fits into your page and make adjustments as needed. To play the Replay press the "Play" button in the inspector.

Now your page will change to display the RSS content in the layout and the "Play" button will change to say "Stop" - press this when you are done previewing (see Figure 4).

You can try other formats too - for example: "Headlines w Stories (Definition List)". Change the format to that and now your layout will have hanging indents (standard definition list formatting).

OK, that looks pretty good, but say you wanted to make those headlines a little bigger than the other content. You can do that with CSS (see Figure 5). Create a CSS class and call it "replayheads" and set the font size to be "larger" and set the weight to be "bold".

Now apply that style to the headlines by selecting it from the "Headln Class" popup.

Preview the Replay again (press the "Play" button) and you should now see that the headlines are larger.

Now if you're really paying attention to details in the layout, you'll see there's a blank line above our feed content that appears to be part of the preview selection. What's happening here is that RSS Replay is inserting content where it is placed in the layout. By default, Dreamweaver puts any content into paragraphs (P tags). So what we have is an extra P tag wrapping our Replayed content. It's easy to fix this -- switch off the preview, so you are looking at the little icon in the layout. The icon should still be selected, and the Tag Insepector (the status area at the bottom of the Dreamweaver window) shows which tags are wrapping the current content. Right now it says "<body><p>". Right click (or control click for you Mac folks) on the P tag there and select "Remove Tag" from the contextual menu.

If you preview again (press the "Play" button) you'll now see that the extra space is gone.

Perfecto! So now you'll want to take a look at the page in the web browser. Save the page and open it in your favorite web browser.

Doh! Until you register RSS Replay the content in the browser will only show "RSS Replay is Unregistered". Once registered, the JavaScript file will be unlocked and you'll see the same thing in the browser that you do in Dreamweaver.

Replaying a Remote Feed
There are really only two important differences between a local feed and a remote feed. First, you have to change the source so the URL is a full URL that includes the protocol (e.g. http://www.whatever.com/path/file.rss). Second, you have to change the method being used to include a proxy that will make the request for RSS content for you (RSS Replay offers two methods -- ASP & PHP).

Start by opening "wddjarticles.html". You're going to replay the feed from Web Designers and Developers Journal so that your readers can see the headlines, and maybe a little bit of the stories.

Select the text that says "Put Replay Here", delete it and insert a Replay. Now to configure the replay, begin with the source. Click the "Sources" button in the inspector. Press the plus button and then enter the URL for the feed: http://webddj.sys-con.com/index.rss (see Figure 6).

Then select the format to display this feed with. Choose "Headlines w Stories (25 Word Stories w UL)". This will display the headlines and stories as a bulleted list, and trim the stories to only the first 25 words.

Finally, we're going to specify the method for transferring the feed using the "Method" popup. The default method is "AJAX/JavaScript (local feeds only)". This method is restricted to displaying feeds that are from the same domain as the page -- a restriction based on the way the web browsers handle data requests. To get around that limitation RSS Replay uses a proxy to request the RSS feed from a remote server but to provide the data as if it were from the local domain. The proxy is a server script and has been included in both ASP and PHP -- so all you have to do is pick the server language that you are using. Of course, you will not be able to test this method without having a server to put in on. Select the proxy that is appropriate for your server.

Now if you press the "Play" button you will see the layout including content from a remote source. Don't worry if you see an HTTP error -- sometimes Dreamweaver times-out before the data is completely transferred -- pressing "Stop" and then "Play" again usually solves this problem.

So save this and test it on your server.

Of course, if you haven't registered yet you'll still see "RSS Replay is Unregistered". But once you do register the JavaScript and ASP/PHP pages will be replaced with unlocked versions and your page will work perfectly (see Figure 7).

Lastly, I want to leave you with one more idea. You can customize your display not only with CSS but also by changing the HTML that is being generated by RSS Replay. In the "Format" menu of the property inspector you will also find the "Advanced" option. Selecting that option will present you with a dialog where you can enter the HTML codes that will be used along with special Replay tags that are used to identify where content is placed and what to do with it -- like<<headline>> and <<story>>. I'll leave that for you to play with.

I hope you enjoy the software and build great websites.

About Ronald Northrip
Ronald Northrip is the President of Ronald Northrip Software (http://www.rnsoft.com), a technology company focused on creating software tools to make developing websites, creating content, and using your computer simpler and better.

Reg Phipps MBCS wrote: Oops found the rssReplay.js don't know why I thougth it was missing but still get the same result
read & respond »
Reg Phipps MBCS wrote: Sorry about the duplication I pressed the back button twice and pressed the ok button without reading the popup window - perhaps the site administrator can remove the duplicate entries.
read & respond »
Reg Phipps MBCS wrote: After following the download and install instructions and creating a new site and pressing the play button on the property inspector I get the feed was empty see below: ------------------------- - Dreamweaver News Dreamweaver and More! All the News Thats Fit to Bit. The feed was empty: dwnews.rss There are no stories to display Made with RSS Replay ------------------ -------- After investigating the dwnews.html it looks like the rssReplay.js required is missing. Can you help.
read & respond »
Reg Phipps MBCS wrote: After following the download and install instructions and creating a new site and pressing the play button on the property inspector I get the feed was empty see below: ------------------------- - Dreamweaver News Dreamweaver and More! All the News Thats Fit to Bit. The feed was empty: dwnews.rss There are no stories to display Made with RSS Replay ------------------ -------- After investigating the dwnews.html it looks like the rssReplay.js required is missing. Can you help.
read & respond »
Reg Phipps MBCS wrote: After following the download and install instructions and creating a new site and pressing the play button on the property inspector I get the feed was empty see below: ------------------------- - Dreamweaver News Dreamweaver and More! All the News Thats Fit to Bit. The feed was empty: dwnews.rss There are no stories to display Made with RSS Replay ------------------ -------- After investigating the dwnews.html it looks like the rssReplay.js required is missing. Can you help.
read & respond »
LATEST FLEX STORIES & POSTS
Two great PDF creators
I like reading stuff in pdf format. But it's even better if you can easily create pdf files. By easily I mean a button click. Literally.Since I have Adobe Acrobat, my Microsoft Word and PowerPoint just have an extra menu to create it. But it's kinda boring. Let me share with you a cou
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
A Runtime Integration Approach to Application Development
This pattern is a hybrid of plug-in and event-driven architecture to integrate individual plug-ins together to come up with the Plug-in Integrator Pattern. This pattern leverages the benefits of both these well-known architectures to provide an optimal solution to build an enterprise-r
JavaOne 2008: Sun Talks Up its Late-to-the-Party AIR-Silverlight Rival
At Java One this week Sun has been selling its year -old-but-still-upcoming - and definitely late-to-the-party - Adobe AIR- and Microsoft Silverlight-competitive JavaFX Rich Client environment as a potential revenue-generator capable of putting ads on mobile applications and JavaFX Scri
Facelift Your SOA with Rich Internet Applications
We are entering an era of Rich Internet Applications (RIA) and enhancing the user experience of consumers of the services becomes an important part in designing and implementing SOA. But if you decide to develop rich clients, you'll be facing the dilemma - which way to go - remain with
Adobe Flash Player 10 Public Beta Now on Adobe Labs
Today, Adobe announced the immediate availability of Adobe Flash Player 10 beta as a free download from Adobe Labs. Adobe Flash Player 10 beta, code named 'Astro', builds on the capabilities of the world's most ubiquitous application runtime with new support for custom filters and effe
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE