176
How to Create RSS Feeds with Dreamweaver using RSS DreamFeeder a Dreamweaver Extension from Ronald Northrip Software, Incorporated http://www.rnsoft.com/products/rssdreamfeeder

Rss Dream Feeder Tutorial

Embed Size (px)

DESCRIPTION

1

Citation preview

Page 1: Rss Dream Feeder Tutorial

How to Create RSS Feeds withDreamweaver using RSS DreamFeeder

a Dreamweaver Extension from

Ronald Northrip Software, Incorporated

http://www.rnsoft.com/products/rssdreamfeeder

Page 2: Rss Dream Feeder Tutorial

How to Create RSS Feeds withDreamweaver using RSS DreamFeederTable of Contents

Introduction 3

Manual FeedsFiles and First Steps 7

Basic Text Feed 10

Basic Podcast 28

Basic Photocast 40

Automated FeedsFiles and First Steps 51

Basic Text Feed from a Single Page 54

Basic Podcast from a Single Page 73

Advanced Text Feed from a Single Page 94

Advanced Text Feed from a Directory 119

Very Advanced Text Feed from Multiple Directorieswith File Name Filters and a Regular Expression Search 144

NotesFor Dynamic Content Websites (Database-driven websites) 158

Downloading and Installing RSS DreamFeeder 159

Basic vs Advanced Feed Settings 161

A Small Note About Uploading 162

Linking to Your Feed 163

Emptying Your Feed 165

Dates and File Capture 166

Importing Stuff into a Feed 167

The Lifetime of an Entry 168

Working with the Content Sampler 169

Working with Templates 171

Working with Contribute 172

Working with InContext Editing 173

Loading Errors, MIME Types, and File Extensions 174

When Your Bottom Directory Isn't Your Root Directory 175

Working in a Workgroup Environment 176

2

Page 3: Rss Dream Feeder Tutorial

How to Create RSS Feeds withDreamweaver using RSSDreamFeederCaution: This is a VERY Long Tutorial

There are several places where you'll have to make decisions about how you want to use RSSDreamFeeder. Follow the tutorial through along your line of thinking. If you change your mind later you canalways do it again.

This tutorial covers RSS DreamFeeder version 2.5.

What's an RSS feed?

An RSS feed is a tool that provides content from your website to other sites orto tools called aggregators (a specially designed browser for headlines). Otherwebsites (like Google News or Yahoo Finance) collect that content and provideit to their readers -- putting your content in front of a new and often much largeraudience. Some individuals may also choose to subscribe to your content withtheir aggregator (and newer browsers have this feature built in). The aggregatorwill check the subscribed URL for new content and display it. So your RSS feedis also like a "what's new" page for interested readers. Its a great way to keeppeople up on what's going on, and its a fantastic tool for electronic permissionmarketing that completely avoids spam filters.

More technically, an RSS feed is a file within which you can place headlines (ortitles) and some piece of content (as large or small as you like) or link to anattachment (like an audio file for podcasts). The file's structure is somethingcalled XML, which is kind of like HTML but for data instead of layout. Feeds canbe in different formats (RSS or Atom) or different versions of the same format(RSS v 1 or v 2). You might need to pick a specific format for a special use, butfor the most part everyone out there supports RSS v 2 or Atom v 1.

Approaching your RSS task

So you've got to get an RSS feed for your website.There are several tools for publishing RSS feeds widelyavailable on the internet, with a range of prices from freeon up. The problem with most of the tools is that theyrequire a good bit of work to get your content into thefeed you are creating. With some, you have to copy andpaste your content into their tool, which is simple forsmall amounts of content but not for larger websites.With others, you have to have PHP, ASP, or Perl onyour webserver and use those tools to rework yourcontent into a feed. In all cases, none of them aredesigned to integrate directly with the primary tool youuse to create the content of your website --Dreamweaver.

The right solution would let you create new content ortake advantage of the content you've already created --right in Dreamweaver. What you need is a simple directediting tool for unique custom content integrated with a powerful way to extract and import content from yourexisting pages. This approach lets you leverage what you know to accomplish the task of creating a feed,

3

Page 4: Rss Dream Feeder Tutorial

without having to learn new tags for RSS and without having to become a CGI expert to program PHP/ASP/Perl. And that is exactly what RSS DreamFeeder does.

When Its Unique

There are times when the content you want to include in your RSS feed is justfor the RSS feed. It may be a "Special Deals" feed for your valued customers, ora Podcast for iTunes, or any other situation where you want the content to beavailable for a special venue or purpose.

There are also times when you just want to be able to edit it yourself, simply anddirectly.

This is what RSS DreamFeeder's manual mode is for. Create any kind of feed you like (text, podcast, etc.),and when the time comes to choose the source of your content select Manual Entry. Then when your feed iscreated you can edit its content in the Content tab of the dialog box.

To do these tutorials about creating manual feeds you'll need a few files, so do the first tutorial here and thenpick from the other ones.

• How To: Manual Feeds: Files and First Steps• How To: Manual Feeds: Basic Text Feed• How To: Manual Feeds: Basic Podcast• How To: Manual Feeds: Basic Photocast

As a side note, the Content tab is available with all feeds regardless of their mode so you can edit thecontent of any feed you create, even the automated ones. This gives you extra control and is very useful in apinch (like when there is a stupid typing error that needs fixing right away).

4

Page 5: Rss Dream Feeder Tutorial

When Its Repeated from Elsewhere

An RSS feed is all about "what's new" -- the ongoing evolution of content onyour website. As you grow your website, adding new content to a page, newpages to content sections or even adding new sections to your site, it isimportant that you plan for that growth. This is what we call the MaintenanceChallenge.

To tackle this challenge you must address who is responsible for new content(you, your staff, departmental staff -- be very specific), what tools will they use tocreate that new content (Dreamweaver, Contribute, InContext, a database webinterface), how will that new content integrate into the site, and especially whatelements of that new content need to be repeated in other places (excerpts forthe home page, title and blurb in a listing page, etc.). Its this last piece that canbe the real killer in any maintenance plan. You have to repeat content to enticepeople to see that content (and someone will forget to do it at some point) butmaintenance is easiest when the content stays in one place.

It is this inherent conflict that makes maintenance very challenging. The moreyou can automate content repetition the less difficult your maintenance task willbe. RSS DreamFeeder has automation built into its core. Once a feed has beenconfigured it can extract new content from your website with the click of a singlebutton. One click and your feed will find the new pages, extract just the contentyou specify, build the links and reconstruct any underlying content linking so that they are absolute URLsand can be repeated on any website, assemble the new content with XML and store that content within yourRSS feed.

Automated feeds are best for collecting content from pages that are formatted the same, from template-based pages, and from websites where there are many pages to manage and many entries to add to thefeed on a regular basis. Automated feeds can also be a handy way to convert a single HTML page withmultiple entries (like a "What's New" page) into an RSS feed. The key thing to managing an effectiveautomated feed is building on consistency because you'll be configuring the feed to identify content basedon where it is or what it looks like (style sheet).

To do these tutorials about creating automated feeds you'll need a few files, so do the first tutorial here andthen pick from the other ones.

• How To: Automated Feeds: Files and First Steps• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

Basic vs Advanced Feed Settings

The audience of Dreamweaver users is wide and diverse, with some users having a great deal of technicalknowledge and others having very little. It is because of this diversity that Dreamweaver's authors haveprovided basic and advanced interfaces for setting up a website or code and graphical interfaces formanipulating web pages. It is in that same spirit that we embrace both a basic and advanced interface forconfiguring feeds. The basic interface guides you through the process in a step-by-step manner, while theadvanced interface reveals extra controls and options valuable for special scenarios. These two interfacesare really just two different presentations of the same toolkit. Starting with the basic interface and moving tothe advanced after a first pass at configuration is often a very useful approach.

5

Page 6: Rss Dream Feeder Tutorial

A Small Note About Uploading

Remember to upload your files. RSS DreamFeeder builds links to your content within the RSSfeed's XML, and just like with HTML, graphics are separate files and must be uploaded to theserver independently. Its not generally a big deal with automated feeds because the content isusually there already, but for manual feeds or feeds where the primary content is audio(podcast) or graphical (photocasts) you'll want to be sure the files are uploaded to the server.

Note for Dynamic Content Websites (database-driven websites)

If you have already built your website with a database and you want to use that database-drivencontent as the source for your RSS feed I applaud your thinking, sadly I have to say that RSSDreamFeeder v 2 doesn't support that. We're working on an update to provide support in thisscenario and we plan to deliver it very soon. RSS DreamFeeder v 2 does work with dynamicpages (ASP/JSP/PHP/CFM) but it uses the source code of the page to draw from. This is veryuseful for websites that are product oriented -- where each product has its own page and the shopping cartservices are provided by the dynamic code.

More Notes You Might Find Useful

• How To: Notes: Downloading and Installing RSS DreamFeeder• How To: Notes: Linking to Your Feed• How To: Notes: Emptying Your Feed• How To: Notes: Dates and File Capture• How To: Notes: Importing Stuff into a Feed• How To: Notes: The Lifetime of an Entry• How To: Notes: Working with the Content Sampler• How To: Notes: Working with Templates• How To: Notes: Working with Contribute• How To: Notes: Working with InContext Editing• How To: Notes: Loading Errors, MIME Types, and File Extensions• How To: Notes: When Your Bottom Directory Isn't Your Root Directory• How To: Notes: Working in a Workgroup Environment

6

Page 7: Rss Dream Feeder Tutorial

How To: Manual Feeds:Files and First StepsYou will, of course, need a copy of RSS DreamFeeder, available from RNSoftware athttp://www.rnsoft.com/products/rssdreamfeeder

It installs, like all extension, with the Extension Manager application that came withDreamweaver, and once installed is available from the Window menu.(For more on installation you can read this note)

You'll probably want a news aggregator to test the feed with. You can use any one that you like,but here are a couple (the first ones that come up when I google "news aggregators download"):

• Ampheta Deskhttp://www.disobey.com/amphetadesk

• NetNewsWirehttp://www.newsgator.com/netnewswire

• more at http://blogs.law.harvard.edu/tech/directory/5/aggregators

You might also try Firefox's active bookmarks or Safari's RSS reader. I happen to like Safari's RSS readerand test with that often.

I've created a simple website with some basic content so you can try creating your own Manual RSS feeds.You can download the demo site for creating Manual RSS feeds fromhttp://www.rnsoft.com/products/rssdreamfeeder/content/tutorial/RDF2DemoManual.zip

You will have to define this as a new website within Dreamweaver. I called the site "Manual Tutorial". Youdon't need a remote site defined, just a local one, because RSS DreamFeeder works right from your localfiles. RSS DreamFeeder uses your site definition to know where to find files and how to build links, so adefined website is required. When you're ready to publish the feed you create on your website you simplyupload the RSS or XML file you created, just like you would for any HTML file. That means you get tomanage your content the way that works best for you and your workflow.

7

Page 8: Rss Dream Feeder Tutorial

For more on managing websites with Dreamweaver see these pages from Adobe:

• Creating your first websitehttp://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html

• Setting up a Dreamweaver sitehttp://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7f62a.html

To keep things simple, the demo website only contains a limited number of files. I wanted to be sure thatthings are as clear as possible so only files related to your task are there.

The folders and files are:

• art - folder containing graphics we'll need• audio - folder containing MP3s for our podcast• content - folder containing HTML files for us to link to• photos - folder containing• text.html - a text file for you to copy from so you don't have to type everything by hand

8

Page 9: Rss Dream Feeder Tutorial

Now that you're familiar with the file set lets proceed with the tutorials. Select the tutorial that you'reinterested in to continue:

• How To: Manual Feeds: Basic Text Feed• How To: Manual Feeds: Basic Podcast• How To: Manual Feeds: Basic Photocast

9

Page 10: Rss Dream Feeder Tutorial

How To: Manual Feeds:Basic Text FeedThe feed you're going to build is a promotional feed for this set of tutorials. This will be a Manually editedRSS text feed that you will use the Basic interface to build.

Of course, you will begin by creating a new feed. Press the New Feed button in the toolbar of the RSSDreamFeeder floating panel. (If RSS DreamFeeder isn't open you can access it through the Window menu.)

The first step in the basic interface is to select the type of feed (RSS Text Feed) and to provide the Title andDescription of the feed. After entering that content you click the next button to proceed to the next panel.

10

Page 11: Rss Dream Feeder Tutorial

The second step is to provide additional descriptive content about the feed. You can provide as much or aslittle of this information as you like, but the more you fill in the easier it will be for aggregators and searchengines to find and organize the content.

11

Page 12: Rss Dream Feeder Tutorial

The third step is to provide the domain name of the website. This is so the links can be built properly as fullurls so they will work on no mater where your content is republished. If you provided this information whensetting up the website in Dreamweaver's site management tool it will be copied here.

The fourth step is to decide how you want the content for this feed to be built. A Manual feed is appropriatefor this case. You'll be managing the content yourself, adding or deleting feed entries, typing or copying/pasting the text.

12

Page 13: Rss Dream Feeder Tutorial

Now that these configuration issues have been completed you can edit the content of the new feed in theContent tab. You can either press the Edit Feed Content button or simply click on the Content tab.

13

Page 14: Rss Dream Feeder Tutorial

In the Content tab you can manage the feed's entries yourself and build as many as you like. To add anentry we click the plus button at the top of the Feed Entries list. Now you simply edit the fields to contain thecontent you want, with a headline, story, author and a link to the tutorial's page.

Fill in the content for the first feed entry:For the Headline use: "Tutorial 1: Manual Feeds: Basic Text Feed"For the Story use: "In this tutorial Ron shares how to create a basic manual text feed with RSSDreamFeeder."For the Author use: "Ron Northrip" (or your own name, whatever makes you happy)

For the Link you'll need to select the file you want to link to. Click the folder icon to the right of the Link fieldand then simply select the file to link to. Use tutorial1.html from within the content folder.

14

Page 15: Rss Dream Feeder Tutorial

When you make this selection you may be prompted (depending on your Dreamweaver preferences) with adialog explaining that links to files are full URLs until the file you are editing is saved. That's OK, there'snothing to worry about here, you just need to confirm it and proceed.

The story might be simple to begin with, but as the icon to the left of the field indicates, it can contain HTML(looks like little HTML brackets) so you can type in HTML. But honestly, typing in HTML isn't very satisfying.After all isn't that what Dreamweaver is supposed to do for you. So to help you leverage all thatDreamweaver has to offer with your own little story you will use the Story Edit button to the left of the field (itlooks like a pencil). Press that button and the content of the story field will be used to create an HTMLdocument that you can edit just like any other document in Dreamweaver (it's OK to say wow, I still say wowwhen I use that feature and I invented it). Make the text "RSS DreamFeeder" bold and italic.

15

Page 16: Rss Dream Feeder Tutorial

Now when you're editing you should see the RSS DreamFeeder floating panel telling you that it is in EditEntry mode and that you are editing the Story field. When you're done editing you need to press the donebutton.

The Done button returns us to the Edit dialog and captures the HTML code from the web page you edited touse in the story field.

16

Page 17: Rss Dream Feeder Tutorial

Finally you can save your feed within the website. Call it tutorials.rss and save it in the root of the website.Its OK that it only has one entry for now. You'll add more entries later.

17

Page 18: Rss Dream Feeder Tutorial

When saved the RSS feed will now be listed in the RSS DreamFeeder files list in the floating panel. Thepanel also displays the date the feed was last modified on and that it is a manual feed (or the number of filesthat need to be checked for automated feeds).

Now you should try it out in an RSS reader like Safari. I like to use Safari for testing because I can just dragthe file I created into the window.

You will probably notice that the link is pointing off to whatever website you configured earlier and not to thelocal file. This is the way an RSS feed is supposed to be. Your RSS content will be repeated on otherwebsites so it has to have an absolute URL for every link. But if you don't keep that in mind it can be startlingto see the link not work (at least not locally). I want to assure you that you did it right.

18

Page 19: Rss Dream Feeder Tutorial

If you happen to have a web server on your computer like I do on mine and if you provide the right site URLyou can make the links work. This sort of setup is how most web developers work now anyhow, especiallyanyone doing server-side coding (like asp/php/etc...). The relationship between absolute URLs and relative/local URLs is one of the stickiest bits of work, but once configured, RSS DreamFeeder handles it for you.

Congratulations -- You have created your first RSS feed.

An RSS feed is not really ever a finished document. It is a reflection of ongoing activity within your website.The tutorials.rss feed isn't just another list of tutorial files in the site, it is an ongoing list of new tutorials aswe add them to the website. It is this living nature that is reflected in the feed's entry order, with the mostrecent content at the top of the list (reverse chronological order). So as you add new entries to the feed theywill get added at the top.

So if you wanted to add two more tutorials to the feed you would follow these instructions:

First, open the text.html file from the root of the website. This contains the text so you can copy/paste.

19

Page 20: Rss Dream Feeder Tutorial

Next, select the Tutorials feed from the list in the RSS DreamFeeder floating panel and press the edit button(looks like a little pencil). Because this is a Manual feed and because all the configuration information isalready entered the dialog will open directly to the Content tab so you can add new content.

Press the plus button to add another feed entry. Then press the Story Edit button to hide the dialog.

20

Page 21: Rss Dream Feeder Tutorial

This will open a blank document that is supposed to have the story, but since there isn't one yet you can justclose it.Now select the headline text for the second tutorial and copy it.

Press the done button in the RSS DreamFeeder floating panel to return to the Edit dialog

21

Page 22: Rss Dream Feeder Tutorial

Now paste the text into the Headline field.

Repeat this process for the story or vary it slightly by pasting into the blank story document, it works bothways.

Enter an author and select the file to link to -- use tutorial2.html in the content folder.

22

Page 23: Rss Dream Feeder Tutorial

Add another feed entry and do it all again for tutorial3. The more times you practice it the easier it willbecome.

Lastly save the feed and test it in your RSS reader.

Excellent. You have updated your first RSS feed.

23

Page 24: Rss Dream Feeder Tutorial

You may proceed with one of the other Manual Feed tutorialsHow To: Manual Feeds: Basic PodcastHow To: Manual Feeds: Basic Photocast

You have now had your first taste of the ongoing maintenance required to keep an RSS text feed up to date.You probably can see the value in automating this process, especially for large websites. If you do thenyou'll want to get the next set of files and try out one of our tutorials for Automated feeds.

How To: Automated Feeds: Files and First StepsHow To: Automated Feeds: Basic Text Feed from a Single Page

Of course, you have to wonder how people will find your RSS feed. You can link to it from any page you like,but in this case you might try it with the text.html page. Read our note on linking to learn how.

More with This Tutorial

A little automation can be dragged into maintaining a manual feed like this one by using the import feature ofour editor. Edit the feed again. As before, the feed is opened in the Content tab automatically. At the topright of the Content tab you will see the Import button. This button launches the Import dialog box which willextract content from whatever file you specify.

Click the folder icon to the right of the Source File field and use tutorial4.html as the source for this import.

24

Page 25: Rss Dream Feeder Tutorial

The tutorial4.html file will be opened and the Content Sampler will be launched so that you can identify whatcontent to extract from the file. If you had imported stuff before then you could optionally use your previouselement identifications, but since this is the first time you'll have to do the hard work of selecting text andclicking a button.

The Content Sampler lists the Content elements your feed is defined to use and identifies if a match (orSample) has been defined for that Content. Samples identify the tag, id, class or template region for thatitem. Samples with a dash "-" have not been defined yet (in the current instance, all of them).

25

Page 26: Rss Dream Feeder Tutorial

Sample the content for the Headline by selecting Headline from the Content list in the floating panel, thenhighlight the text that is the headline (the big text at the top of the page) and then press the sample button(looks like an eye-dropper). Notice the sample tells you that you choose an H1 (that's the HTML tag it issampling).Do the same for the Author (Ron Northrip) and the Story (the last paragraph). Notice that it issampling the HTML tags with classes attached (style sheet identifiers).

If the Content Sampler has samples defined for the content entries when you click on an entry thecorresponding text within the document will be highlighted.

Once you've sampled what you want press the Done button and the page will be processed, the contentextracted, and data placed into the appropriate fields in the feed entry. They'll need a little cleanup, forexample the Author field should just be "Ron Northrip" without the "by", but its much faster and easier thancopying/pasting piece by piece.

26

Page 27: Rss Dream Feeder Tutorial

Building a manual feed and using Import is a valid approach to maintaining your RSS feed. Lots of peopleI've spoken to that use RSS DreamFeeder this way say it gives them a nice balance between control overtheir RSS feed's content (especially which files to include) and the power of automation.

27

Page 28: Rss Dream Feeder Tutorial

How To: Manual Feeds:Basic PodcastIn this tutorial you're going to build a podcast for this set of tutorials. You'll be creating a Manually editedPodcast that you will use the Basic interface to build.

Podcasts are the same as any other RSS feed, except that instead of linking to an HTML file it will link to anaudio file (MP3). So building a podcast follows the same steps. Begin by creating a new feed. Press theNew Feed button in the toolbar of the RSS DreamFeeder floating panel. (If RSS DreamFeeder isn't openyou can access it through the Window menu.)

The first step in the basic interface is to select the type of feed (iTunes Podcast) and to provide the Title andDescription of the feed. After entering that content we click the next button to proceed to the next panel.

28

Page 29: Rss Dream Feeder Tutorial

The second step is to provide additional descriptive content about the feed. You can provide as much or aslittle of this information as you like, but the more you fill in the easier it will be for aggregators and searchengines to find and organize the content. The is particularly important if you plan to submit your podcast forinclusion in the Apple Podcast Directory.

29

Page 30: Rss Dream Feeder Tutorial

In this panel is also where you can associate an image with your Podcast. The default size and type ofimage for iTunes is a 300 x 300 JPEG. We also recommend embedding this image in the MP3 as well. Bringyour original MP3 into iTunes and get info on the file and then copy and paste the image into the artworkblock for the file. This way if the linked image fails for any reason the embedded image will still work.

The third step is to provide the domain name of the website. This is so the links can be built properly as fullurls so they will work on no mater where your content is republished. If you provided this information whensetting up the website in Dreamweaver's site management tool it will be copied here.

30

Page 31: Rss Dream Feeder Tutorial

The fourth step is to decide how you want the content for this feed to be built. A Manual feed is appropriatefor this case. You'll be managing the content yourself, adding or deleting feed entries, typing or copying/pasting the text.

31

Page 32: Rss Dream Feeder Tutorial

Now that these configuration issues have been completed you can edit the content of the new feed in theContent tab. You can either press the Edit Feed Content button or simply click on the Content tab.

In the Content tab you can manage the feed's entries yourself (episodes in podcasting lingo) and build asmany as you like. To add an entry we click the plus button at the top of the Feed Entries list. Now you simplyedit the fields to contain the content you want, with a headline (title of an episode), story (episode textdescription), author and an audio enclosure (a link to the audio file).

32

Page 33: Rss Dream Feeder Tutorial

Fill in the content for the first feed entry:For the Headline use: "Episode 1: Creating Manual Feeds: A Basic Text Feed"For the Story use: "In this episode we're going to discuss how to create a basic manual text feed with RSSDreamFeeder."For the Author use: "Ron Northrip" (or your own name, whatever makes you happy)

33

Page 34: Rss Dream Feeder Tutorial

For the Enclosure you'll need to select the file you want to link to. Click the folder icon to the right of theEnclosure field and then simply select the file to link to. Use episode1.mp3 from within the audio folder.

Finally you can save your podcast within the website. Call it podtutor.rss and save it in the root of thewebsite. Its OK that it only has one episode for now. You'll add more later.

34

Page 35: Rss Dream Feeder Tutorial

Once saved your podcast will be included in the RSS DreamFeeder floating panel. You will when you lastupdated the feed and that the feed is manually edited (so there are no files to check).

You can try this out in a news reader to see how the feed looks. That's easy to do with the local content. Ilike to use safari because I can just drag the RSS file into the window and see what is happening.

35

Page 36: Rss Dream Feeder Tutorial

But more importantly we want to use this feed in iTunes, so the feed has to be put on a web server. Thisdoesn't have to be it's final home but it does have to be a web server and that server has to be the one inthe configuration you provided when editing the feed (and you can always change that later). Be sure toupload all the related audio/graphic files too.

Launch iTunes. Select the Advanced menu and Subscribe to Podcast. Now provide the url of the podcast.

The podcast you created now appears in the Podcast list in iTunes.

36

Page 37: Rss Dream Feeder Tutorial

Now if you want to add a few more episodes to your podcast it is a simple process. Go back toDreamweaver and select the Tutorials Podcast from the list in the RSS DreamFeeder floating panel andpress the edit button (looks like a little pencil). Because this is a Manual feed and because all theconfiguration information is already entered the dialog will open directly to the Content tab so you can addnew content.

Press the plus button to add another feed entry and then fill in the content and enclose episode2.mp3.

For the Headline use: "Episode 2: Creating Manual Feeds: A Basic Podcast"For the Story use: "In this episode we're going to discuss how to create a basic manual text feed with RSSDreamFeeder."

37

Page 38: Rss Dream Feeder Tutorial

Do it again for episode 3.

For the Headline use: "Episode 3: Creating Manual Feeds: A Basic Photocast"For the Story use: "In this episode we're going to discuss how to create a basic manual photocast with RSSDreamFeeder."

38

Page 39: Rss Dream Feeder Tutorial

Now save and upload the feed to the website and test it in iTunes again. To refresh in iTunes select thepodcast from the list and press the Refresh button at the bottom-right of the window (or right-click and selectRefresh).

As a final note, it is very important to test your podcast in iTunes before submitting it to be included in theiTunes directory.

Good work . You have updated your Podcast.

You may proceed with one of the other Manual Feed tutorialsHow To: Manual Feeds: Basic Text FeedHow To: Manual Feeds: Basic Photocast

You have now had your first taste of the ongoing maintenance required to keep an RSS feed (of any type --text or podcasts) up to date. You probably can see the value in automating this process, especially for largewebsites. If you do then you'll want to get the next set of files and try out one of our tutorials for Automatedfeeds.

How To: Automated Feeds: Files and First StepsHow To: Automated Feeds: Basic Text Feed from a Single PageHow To: Automated Feeds: Basic Podcast from a Single Page

39

Page 40: Rss Dream Feeder Tutorial

How To: Manual Feeds:Basic PhotocastIn this tutorial you're going to build a photocast of pictures from a lovely wedding. You'll be creating aManually edited Photocast that you will use the Basic interface to build.

A photocasts is the same as any other Podcast or RSS feed, except that instead of linking to an HTML file itwill link to photo file (JPEG). So building a photocast follows the same steps. Begin by creating a new feed.Press the New Feed button in the toolbar of the RSS DreamFeeder floating panel. (If RSS DreamFeederisn't open you can access it through the Window menu.)

The first step in the basic interface is to select the type of feed (iPhoto Photocast) and to provide the Titleand Description of the feed. After entering that content we click the next button to proceed to the next panel.

40

Page 41: Rss Dream Feeder Tutorial

The second step is to provide additional descriptive content about the feed. You can provide as much or aslittle of this information as you like, but the more you fill in the easier it will be for aggregators and searchengines to find and organize the content. The is particularly important if you plan to submit your podcast forinclusion in the Apple Podcast Directory.

41

Page 42: Rss Dream Feeder Tutorial

The third step is to provide the domain name of the website. This is so the links can be built properly as fullurls so they will work on no mater where your content is republished. If you provided this information whensetting up the website in Dreamweaver's site management tool it will be copied here.

The fourth step is to decide how you want the content for this feed to be built. A Manual feed is appropriatefor this case. You'll be managing the content yourself, adding or deleting feed entries, typing or copying/pasting the text.

42

Page 43: Rss Dream Feeder Tutorial

Now that these configuration issues have been completed you can edit the content of the new feed in theContent tab. You can either press the Edit Feed Content button or simply click on the Content tab.

In the Content tab you can manage the feed's entries yourself and build as many as you like. To add anentry we click the plus button at the top of the Feed Entries list. Now you simply edit the fields to contain the

43

Page 44: Rss Dream Feeder Tutorial

content you want, with a headline (title of the photo), thumbnail (link to a small photo) and photo enclosure(links to the full size photo).

Fill in the content for the first feed entry:For the Headline use: "Quiet Preparations are Made"

44

Page 45: Rss Dream Feeder Tutorial

For the Enclosure you'll need to select the file you want to link to. Click the folder icon to the right of theEnclosure field and then simply select the file to link to. Use freer01.jpg from within the photos folder.

For the Thumbnail you'll need to select the file you want to link to. Click the folder icon to the right of theThumbnail field and then simply select the file to link to. Use freer01thumb.jpg from within the photos folder.

45

Page 46: Rss Dream Feeder Tutorial

Finally you can save your photocast within the website. Call it phototutor.rss and save it in the root of thewebsite. Its OK that it only has one episode for now. You'll add more later.

46

Page 47: Rss Dream Feeder Tutorial

Once saved the new Podcast is listed in the RSS DreamFeeder floating panel. The panel also indicatedwhen the file was last updated and that it is a manual feed.

You can try this out in a news reader to see how the feed looks. That's easy to do with the local content. Ilike to use Safari because I can just drag and drop the feed on it and see what is happening.

47

Page 48: Rss Dream Feeder Tutorial

But more importantly we want to use this feed in iPhoto, so the feed has to be put on a web server. Thisdoesn't have to be it's final home but it does have to be a web server and that server has to be the one inthe configuration you provided when editing the feed (and you can always change that later). Be sure toupload all the related graphic files too.

Launch iPhoto. Select the File menu and Subscribe to Photo Feed. Now provide the url of the photocast.The photocast you created now appears in the Podcast list in iPhoto.

Now if you want to add a few more episodes to your podcast it is a simple process. Go back toDreamweaver and select the Photocast Tutorial from the list in the RSS DreamFeeder floating panel andpress the edit button (looks like a little pencil). Because this is a Manual feed and because all theconfiguration information is already entered the dialog will open directly to the Content tab so you can addnew content.

48

Page 49: Rss Dream Feeder Tutorial

Press the plus button to add another feed entry and then fill in the content and enclose freer02.jpg withfreer02thumb.jpg as the thumbnail. For the Headline use: "Joy, Happiness, Flowers, and Running"

Do it again for freer03.jpg. For the Headline use: "A Happy Pair of Lovers"

49

Page 50: Rss Dream Feeder Tutorial

Now save and upload the feed to the website and test it in iPhoto again. To refresh in iPhoto press the smallrefresh icon to the right of your photocast in the subscriptions list.

Excellent . You have created a Photocast.

You may proceed with one of the other Manual Feed tutorialsHow To: Manual Feeds: Basic Text FeedHow To: Manual Feeds: Basic Podcast

You have now had your first taste of the ongoing maintenance required to keep an RSS feed (of any type --text or podcasts) up to date. You probably can see the value in automating this process, especially for largewebsites. If you do then you'll want to get the next set of files and try out one of our tutorials for Automatedfeeds.

How To: Automated Feeds: Files and First StepsHow To: Automated Feeds: Basic Text Feed from a Single Page

50

Page 51: Rss Dream Feeder Tutorial

How To: Automated Feeds:Files and First StepsYou will, of course, need a copy of RSS DreamFeeder, available from RNSoftware athttp://www.rnsoft.com/products/rssdreamfeeder

It installs, like all extension, with the Extension Manager application that came withDreamweaver, and once installed is available from the Window menu.(For more on installation you can read this note)

You'll probably want a news aggregator to test the feed with. You can use any one that you like,but here are a couple (the first ones that come up when I google "news aggregators download"):

• Ampheta Deskhttp://www.disobey.com/amphetadesk

• NetNewsWirehttp://www.newsgator.com/netnewswire

• more at http://blogs.law.harvard.edu/tech/directory/5/aggregators

I've created a simple website with some basic content so you can try creating your own Automated RSSfeeds. You can download the demo site for creating Automated RSS feeds fromhttp://www.rnsoft.com/products/rssdreamfeeder/content/tutorial/RDF2DemoAutomated.zip

You will have to define this as a new website within Dreamweaver. I called the site "Automated Tutorial". Youdon't need a remote site defined, just a local one, because RSS DreamFeeder works right from your localfiles. RSS DreamFeeder uses your site definition to know where to find files and how to build links, so adefined website is required. When you're ready to publish the feed you create on your website you simplyupload the RSS or XML file you created, just like you would for any HTML file. That means you get tomanage your content the way that works best for you and your workflow.

51

Page 52: Rss Dream Feeder Tutorial

For more on managing websites with Dreamweaver see these pages from Adobe:

• Creating your first websitehttp://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html

• Setting up a Dreamweaver sitehttp://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7f62a.html

To keep things simple, the demo website only contains a limited number of files. But to be authentic wecreated this site using CSS styles, templates, and library items, just like you would for your website. Thisshould give you the opportunity to see how RSS DreamFeeder would behave in a production environmentwhile still limiting the files you have to attend to so you can see the complete toolkit in action.

The folders and files are

• 00_artshared - common folder containing graphics for the site• 00_scriptsshared - common folder containing javascripts for the site• 00_stylesshared - common folder containing stylesheets for the site• 03_HumanResources - folder containing the content of the hr part of the site, including the

JobBank listing of open positions within the company• 04_ProductManagement - folder containing the content of the product management part of the

site, including press releases for new products• 05_SalesMarketing - folder containing the content of the sales part of the site, linked to from the

home page

52

Page 53: Rss Dream Feeder Tutorial

• 06_PublicRelations - folder containing the content of the pr part of the site, including otherreleases and press notes, and a new podcast (audio subdirectory)

• Library - dreamweaver library items for the site• Templates - dreamweaver page templates for the site• index.html - the home page of the website

Now that you're familiar with the file set lets proceed with the tutorials. Select the tutorial that you'reinterested in to continue:

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

53

Page 54: Rss Dream Feeder Tutorial

How To: Automated Feeds:Basic Text Feed from a SinglePageThe feed you're going to build is a promotional feed of press releases for products. This will be a AutomatedRSS text feed that you will use the Basic interface to build.

In this scenario the Product Management team creates press releases when new products are introduced.They list all the press releases on the release.html page in their directory (04_ProductManagement). Openthat file and you will see that there are two entries in the list. This list has exactly the sort of content youwould want for an RSS text feed: a headline or title; a text summary or story; a link (in this case the headlineis also the link); and even a date. You will use this list as the source for an RSS feed of press releases.

Naturally, you will begin by creating a new feed. Press the New Feed button in the toolbar of the RSSDreamFeeder floating panel. (If RSS DreamFeeder isn't open you can access it through the Window menu.)

54

Page 55: Rss Dream Feeder Tutorial

The first step in the basic interface is to select the type of feed (RSS Text Feed) and to provide the Title andDescription of the feed. After entering that content you click the next button to proceed to the next panel.

The second step is to provide additional descriptive content about the feed. You can provide as much or aslittle of this information as you like, but the more you fill in the easier it will be for aggregators and searchengines to find and organize the content.

55

Page 56: Rss Dream Feeder Tutorial

The third step is to provide the domain name of the website. This is so the links can be built properly as fullurls so they will work on no mater where your content is republished. If you provided this information whensetting up the website in Dreamweaver's site management tool it will be copied here.

56

Page 57: Rss Dream Feeder Tutorial

The fourth step is to decide how you want the content for this feed to be built. The goal is to extract thecontent of the feed from the releases.html file. So you'll set the source to be files. Your computer will do thework so you will select Local Processing.

The fifth step is to specify where the content is that you want to process. The content is a list within a singleweb page, and so you will select Page and then specify the file (releases.html). Because the source is apage and not a directory searching subdirectories doesn't matter.

57

Page 58: Rss Dream Feeder Tutorial

The last setting on this panel is one of the more important settings. This controls when new content is addedto the RSS feed. You want the RSS feed to be updated to include any new releases you might later add tothe page, so when the file is modified you need RSS DreamFeeder to look for new content. Its the defaultbehavior for RSS DreamFeeder when working with a single page source and its exactly what you want --add new stuff to the page and it should be added to the RSS feed too.

58

Page 59: Rss Dream Feeder Tutorial

Now that you have completed the basic configuration you need to specify what content elements to extractfrom the page. To do this you will use the Content Sampler so press the Launch Content Sampler button.

59

Page 60: Rss Dream Feeder Tutorial

The RSS DreamFeeder floating panel has now been changed into the Content Sampler, your tool forsampling the content you wish to extract from the page. The idea is that you can easily highlight the text youwant to use and then sample that text by pressing the button.

The Content Sampler lists the Content elements your feed is defined to use and identifies if a match (orSample) has been defined for that Content. Samples identify the tag, id, class or template region for thatitem. Samples with a dash "-" have not been defined yet (in the current instance, all of them).

Sample the content for the Headline by selecting Headline from the Content list in the floating panel, thenhighlight the text that is the headline (the big text at the top of the page) and then press the sample button(looks like an eye-dropper). Notice the sample tells you that you choose an A with class=releaseHeadline(that's the A [link] html tag it is sampling, but only those links that have been styled as releaseHeadline).

60

Page 61: Rss Dream Feeder Tutorial

Do the same for the Story (the paragraph after the headline). Notice that it is sampling the P tags withreleaseStory class that come after the headline (it should say after the headline in the Sampler list -- youmight have to make the window wider to see).

61

Page 62: Rss Dream Feeder Tutorial

Now try the Link. You want the Link to link to what the headline links to, so select Link from the list, thenselect the headline in the layout and finally press the sample button. Notice that the sample says Headline'sHREF attribute. The HREF attribute is the part of an html link tag that specifies the destination of the link.The link in the RSS feed will point to the same page that is specified in the HREF attribute here.

62

Page 63: Rss Dream Feeder Tutorial

With Date the default is to simply use the modification date of the file. That means the date listed will bewhen you change the page and save it. What you really want to do is grab the date from the text on thepage. You can sample the Date just like any other piece of content. Try it now and you will see that it issampling the TD tag with releaseDate class that comes after the headline. However, dates are trickybecause they have to be real dates that the computer can easily recognize as a date. If it is unrecognizedthen the modification date will be used instead. As long as you stick to basic text (Jan, January, Feb,February, etc...) and numbers (0-31) and slashes (5/1 or 5/1/2009) it will work.

63

Page 64: Rss Dream Feeder Tutorial

If the Content Sampler has samples defined for the content entries when you click on an entry thecorresponding text within the document will be highlighted. Try it by clicking on Headline, Story, Link or Datein the list. Notice the selection change within the page.

For Author there isn't any content on the page for you to sample. That's OK, you can just skip it for now. Youare done sampling content from the page so you can click the Done button. The Edit dialog will reopen andyour settings will be transferred back to the RSS feed you were creating.

As you can see you have completed configuring your feed. But when you press Save it tells you there is anerror: Match settings are require for Author. When you dismiss the error you will be taken to the Advancedinterface's Author panel so you can specify the missing settings.

64

Page 65: Rss Dream Feeder Tutorial

If you don't want an author you have to tell RSS DreamFeeder to not include the Author element. This isdone in the Elements panel (click Elements from the Category list) and then uncheck Author. You will noticethat Author is no longer in the Categories list on the left.

65

Page 66: Rss Dream Feeder Tutorial

That is all the Advanced stuff you're going to do in this tutorial -- just a little taste. You can see that its prettyextensive, but you don't really need it when you can use the Content Sampler. Press the Basic tab and youwill return to the final panel in the basic set, ready to save the feed. Now press the Save button and save thefeed as releases.rss within the 04_ProductManagement directory.

66

Page 67: Rss Dream Feeder Tutorial

The panel you were just looking at had an important reminder in it -- remember to process your feed. Whatdoes that mean? When you were sampling content you identified what stuff to extract from the page, but theextraction hasn't happened yet -- you have only been doing the setup work. Processing the feed meansextracting the content from the source page and including it in the RSS feed. This is also reflected in theRSS DreamFeeder floating panel. It shows your new feed (Product Releases) in the list and says that it hasnever been processed, and that it has 1 file to check (that would be releases.html).

The file must be examined for content and the content must be extracted and placed into our feed. That iscalled Processing the feed, and you do it by selecting your feed from the RSS DreamFeeder floating panelfiles list (should already be selected) and pressing the Process button. While processing you will see adialog box that informs you about what is going on.

When the processing is done you will see that your feed has 0 files to check (in the list in the RSSDreamFeeder floating panel).

Finally, you can try the feed out in your news reader. I like to use Safari for testing because I can just dragthe file I created into the window.

67

Page 68: Rss Dream Feeder Tutorial

You will probably notice that the link is pointing off to whatever website you configured earlier and not to thelocal file. This is the way an RSS feed is supposed to be. Your RSS content will be repeated on otherwebsites so it has to have an absolute URL for every link. But if you don't keep that in mind it can be startlingto see the link not work (at least not locally). I want to assure you that you did it right.

68

Page 69: Rss Dream Feeder Tutorial

If you happen to have a web server on your computer like I do on mine and if you provide the right site URLyou can make the links work. This sort of setup is how most web developers work now anyhow, especiallyanyone doing server-side coding (like asp/php/etc...). The relationship between absolute URLs and relative/local URLs is one of the stickiest bits of work, but once configured, RSS DreamFeeder handles it for you.

Congratulations -- You have created an RSS feed.

An RSS feed is not really ever a finished document. It is a reflection of ongoing activity within your website.The releases.rss feed isn't just another list of press release in the site, it is an ongoing list of new pressreleases as you add them to the website, or more specifically to the press real ease listing page that youspecified as the source for this feed. And the great beauty of the configuration work you've done on this feedis that once the press releases page is updated all you will have to do to update the RSS feed is press theProcess button. I like that so I'm going to say it again -- one click and you're updated. Sweet.

So there is another press release in the holdfolder in 04_ProductManagement calledSCLRelease.html. Move it to the releases folder.You can do this in the Files panel inDreamweaver by simply dragging the file. If youget prompted to update any links you should doit.

There is also a file called SCLBlurb.html thatcontains the blurb to use on the press releasespage (as if your boss had emailed it to you).Open that page in Dreamweaver and you'll use itto copy and paste.

Now go back to releases.html (the press releasepage) so you can edit it. The press releases arein a table with the most recent entries at the topof the table (reverse chronological order). Theeasiest thing to do is to copy and paste the firstpress release entry and then modify it. So selectthe whole table row and copy it, then click at thestart of the headline and paste (a new row will beinserted automatically).

Now you can copy and paste the headline textand descriptive paragraph from SCLBlurb.html --do it one at a time or you might loose some of thestyling. Change the date to May 30. Change thelink for the headline to link to SCLRelease.html inthe releases folder.

Depending on how you copy/paste you mightloose the styling that identifies the content asrelease material. If you did it one at a time like Isuggested above you didn't. Check it by selectingthe headline and see that it is styled asreleaseHeadline. Select the description and besure that it is styled as releaseStory. Select thedate and be sure it is styled as releaseDate.Remember that the style information is what yousampled with the content sampler, if that information is lost or doesn't match then the content will not beincluded in the RSS feed. I'm including this warning here not because this is hard to maintain -- actually itsvery easy -- I'm saying it so that you have a clear understand of how your toolkit works.

69

Page 70: Rss Dream Feeder Tutorial

You can use whatever method you like to get the new content onto the page. What I outlined above is areflection of my preferred methods. Everyone uses Dreamweaver in their own way, and that's fine as long asyou get the job done.

Now that you are done editing the press releases page you need to save it. When you do save it you willnotice that the files list in the RSS DreamFeeder floating panel now indicates that there is 1 file to check foryour feed.

You have now arrived at the single-click update. Simply select your feed from the files list in the RSSDreamFeeder floating panel (probably already selected) and press the Process button.

70

Page 71: Rss Dream Feeder Tutorial

Your feed is processed, the new content is extracted from the source page, and it now is in the RSS feed.Check it for yourself by loading the feed into your RSS reader (if you used Safari you can just press therefresh button in Safari).

Congratulations -- You have updated an RSS feed.

Of course, you have to wonder how people will find your RSS feed. You can link to it from any page you like,but in this case you might try it with the release.html page. Read our note on linking to learn how.

One other thing you might be interested in. If you want to edit the content of the feed directly you can usethe Content tab of the Edit dialog. Simply select your feed from the files list in the RSS DreamFeeder floatingpanel and press the Edit button (looks like a little pencil) and then press the Content tab. You can changeheadlines, stories, dates, links or whatever you need (to fix a stupid typing error). This is also a useful way tocheck the content of a feed if you don't have an RSS reader handy.

71

Page 72: Rss Dream Feeder Tutorial

If you're interested you may choose to proceed to another tutorial:

• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

72

Page 73: Rss Dream Feeder Tutorial

How To: Automated Feeds:Basic Podcast from a SinglePageThe feed you're going to build is a promotional podcast. This will be a Automated RSS text feed that you willuse the Basic interface to build.

In this scenario the Public Relations team regularly records a podcast they call the FruitCast to promoteAMCE's product line. They list all the episodes on the cast.html page in their directory (06_PublicRelations).Open that file and you will see that there are two entries in the list. This list has exactly the sort of contentyou would want for creating a podcast: a headline or title; a text summary or story; a link to the audio file;and a date. You will use this list as the source for the podcast.

Naturally, you will begin by creating a new feed. Press the New Feed button in the toolbar of the RSSDreamFeeder floating panel. (If RSS DreamFeeder isn't open you can access it through the Window menu.)

73

Page 74: Rss Dream Feeder Tutorial

The first step in the basic interface is to select the type of feed (iTunes Podcast) and to provide the Title andDescription of the feed. After entering that content you click the next button to proceed to the next panel.

The second step is to provide additional descriptive content about the feed. You can provide as much or aslittle of this information as you like, but the more you fill in the easier it will be for aggregators and searchengines to find and organize the content.

74

Page 75: Rss Dream Feeder Tutorial

Image sizes vary by service, but for iTunes you would want to use a 300x300 image. There is an image inthe 00_artshared folder that is ready for your use.

75

Page 76: Rss Dream Feeder Tutorial

The third step is to provide the domain name of the website. This is so the links can be built properly as fullurls so they will work on no mater where your content is republished. If you provided this information whensetting up the website in Dreamweaver's site management tool it will be copied here.

The fourth step is to decide how you want the content for this feed to be built. The goal is to extract thecontent of the feed from the releases.html file. So you'll set the source to be files. Your computer will do thework so you will select Local Processing.

76

Page 77: Rss Dream Feeder Tutorial

The fifth step is to specify where the content is that you want to process. The content is a list within a singleweb page, and so you will select Page and then specify the file (cast.html). Because the source is a pageand not a directory searching subdirectories doesn't matter.

77

Page 78: Rss Dream Feeder Tutorial

The last setting on this panel is one of the more important settings. This controls when new content is addedto the podcast. You want the podcast to be updated to include any new releases you might later add to thepage, so when the file is modified you need RSS DreamFeeder to look for new content. Its the defaultbehavior for RSS DreamFeeder when working with a single page source and its exactly what you want --add new stuff to the page and it should be added to the RSS feed too.

Now that you have completed the basic configuration you need to specify what content elements to extractfrom the page. To do this you will use the Content Sampler so press the Launch Content Sampler button.

78

Page 79: Rss Dream Feeder Tutorial

The RSS DreamFeeder floating panel has now been changed into the Content Sampler, your tool forsampling the content you wish to extract from the page. The idea is that you can easily highlight the text youwant to use and then sample that text by pressing the button.

The Content Sampler lists the Content elements your feed is defined to use and identifies if a match (orSample) has been defined for that Content. Samples identify the tag, id, class or template region for thatitem. Samples with a dash "-" have not been defined yet (in the current instance, all of them).

Sample the content for the Headline by selecting Headline from the Content list in the floating panel, thenhighlight the text that is the headline (the big text at the top of the page) and then press the sample button

79

Page 80: Rss Dream Feeder Tutorial

(looks like an eye-dropper). Notice the sample tells you that you choose a B with class=episodeTitle (that'sthe bold tag it is sampling, but only bolds that have been styled as episodeTitle).

Do the same for the Story (the line after the headline). Notice that it is sampling the SPAN tags withepisodeDescription class that come after the headline (it should say after the headline in the Sampler list --you might have to make the window wider to see).

80

Page 81: Rss Dream Feeder Tutorial

With Date the default is to simply use the modification date of the file. That means the date listed will bewhen you change the page and save it. What you really want to do is grab the date from the text on thepage. You can sample the Date just like any other piece of content. Try it now and you will see that it issampling the TD tag with episodeDate class that comes after the headline. However, dates are trickybecause they have to be real dates that the computer can easily recognize as a date. If it is unrecognizedthen the modification date will be used instead. As long as you stick to basic text (Jan, January, Feb,February, etc...) and numbers (0-31) and slashes (5/1 or 5/1/2009) it will work.

81

Page 82: Rss Dream Feeder Tutorial

Now try the Enclosure. You want the Enclosure to use the "Download Episode" link, so select Episode fromthe list, then select the link in the layout and finally press the sample button. Notice that the sample saysHREF from A CLASS=episodeLink. The HREF attribute is the part of an html link tag that specifies thedestination of the link. The Enclosure in the RSS feed will point to the same content (the audio file) that isspecified in the HREF attribute here.

82

Page 83: Rss Dream Feeder Tutorial

If the Content Sampler has samples defined for the content entries when you click on an entry thecorresponding text within the document will be highlighted. Try it by clicking on Headline, Story, Enclosure orDate in the list. Notice the selection change within the page.

For Author there isn't any content on the page for you to sample. That's OK, you can just skip it for now. Youare done sampling content from the page so you can click the Done button. The Edit dialog will reopen andyour settings will be transferred back to the RSS feed you were creating.

83

Page 84: Rss Dream Feeder Tutorial

As you can see you have completed configuring your feed. But when you press Save it tells you there is anerror: Match settings are require for Author.

When you dismiss the error you will be taken to the Advanced interface's Author panel so you can specifythe missing settings. In this scenario the Author should always be the same thing (a Fixed Value): the text"ACME F&N". So select Fixed Value and enter ACME F&N for the text.

84

Page 85: Rss Dream Feeder Tutorial

That is all the Advanced stuff you're going to do in this tutorial -- just a little taste. You can see that its prettyextensive, but you don't really need it when you can use the Content Sampler. Press the Basic tab and youwill return to the final panel in the basic set, ready to save the feed. Now press the Save button and save thefeed as cast.rss within the 06_PublicRelations directory.

85

Page 86: Rss Dream Feeder Tutorial

The panel you were just looking at had an important reminder in it -- remember to process your feed. Whatdoes that mean? When you were sampling content you identified what stuff to extract from the page, but theextraction hasn't happened yet -- you have only been doing the setup work. Processing the feed meansextracting the content from the source page and including it in the RSS feed. This is also reflected in theRSS DreamFeeder floating panel. It shows your new feed (FruitCast) in the list and says that it has neverbeen processed, and that it has 1 file to check (that would be cast.html).

The file must be examined for content and the content must be extracted and placed into our feed. That iscalled Processing the feed, and you do it by selecting your feed from the RSS DreamFeeder floating panelfiles list (should already be selected) and pressing the Process button.

While processing you will see a dialog box that informs you about what is going on.

86

Page 87: Rss Dream Feeder Tutorial

When the processing is done you will see that your feed has 0 files to check (in the list in the RSSDreamFeeder floating panel).

Finally, you can try the feed out in your news reader. I like to use Safari for testing because I can just dragthe file I created into the window. You will probably notice that the link is pointing off to whatever website youconfigured earlier and not to the local file. This is the way an RSS feed is supposed to be. Your RSS contentwill be repeated on other websites so it has to have an absolute URL for every link. But if you don't keep thatin mind it can be startling to see the link not work (at least not locally). I want to assure you that you did itright.

87

Page 88: Rss Dream Feeder Tutorial

If you happen to have a web server on your computer like I do on mine and if you provide the right site URLyou can make the links work. This sort of setup is how most web developers work now anyhow, especiallyanyone doing server-side coding (like asp/php/etc...). The relationship between absolute URLs and relative/local URLs is one of the stickiest bits of work, but once configured, RSS DreamFeeder handles it for you. Ifyou did this part right and the links work then you can proceed to iTunes and try it out there.

Launch iTunes. Select the Advanced menu and Subscribe to Podcast. Now provide the url of the podcast.The podcast you created now appears in the Podcast list in iTunes.

88

Page 89: Rss Dream Feeder Tutorial

Congratulations -- You have created a Podcast.

Of course the best podcasts are ones that are regularly updated with new and interesting content. It is thisongoing activity that draws and keeps an audience. The configuration work you've done on this feed meansthat once the FruitCast page is updated all you will have to do to update the RSS feed is press the Processbutton. I like that so I'm going to say it again -- one click and you're updated. Cool.

So there is another MP3 file in the audio folder in 06_PublicRelations called episode12.mp3. That's yournext FruitCast episode.

Now go back to cast.html (the FruitCast page) in Dreamweaver so you can edit it. The episode descriptionsare in a table with the most recent entries at the top of the table (reverse chronological order). The easiestthing to do is to copy and paste the row for Episode 11 and then modify it. So select the whole table row andcopy it, then click at the start of the headline and paste (a new row will be inserted automatically).

Now you change the copied content.For the headline use: "Episode 12: Oranges are Orange"For the description use: "You'd be supprised how many people get this onewrongChange the date to: May 27Change the link to link to the episode12.mp3 file in the audiofolder and to say "Download Episode 12"

89

Page 90: Rss Dream Feeder Tutorial

Now that you are done editing the FruitCast page you need to save it. When you do save it you will noticethat the files list in the RSS DreamFeeder floating panel now indicates that there is 1 file to check for yourpodcast.

You have now arrived at the single-click update. Simply select your feed from the files list in the RSSDreamFeeder floating panel (probably already selected) and press the Process button.

90

Page 91: Rss Dream Feeder Tutorial

Your feed is processed, the new content is extracted from the source page, and it now is in the podcast.

Check it for yourself by loading it into your RSS reader (if you used Safari you can just press the refreshbutton in Safari).

91

Page 92: Rss Dream Feeder Tutorial

If you need to, upload the feed to the website and then test it in iTunes again. To refresh in iTunes select thepodcast from the list and press the Refresh button at the bottom-right of the window (or right-click and selectRefresh).

Congratulations -- You have updated your podcast.

92

Page 93: Rss Dream Feeder Tutorial

One other thing you might be interested in. If you want to edit the content of the feed directly you can usethe Content tab of the Edit dialog. Simply select your feed from the files list in the RSS DreamFeeder floatingpanel and press the Edit button (looks like a little pencil) and then press the Content tab. You can changeheadlines, stories, dates, links or whatever you need (to fix a stupid typing error). This is also a useful way tocheck the content of a feed if you don't have an RSS reader handy.

If you're interested you may choose to proceed to another tutorial::

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

93

Page 94: Rss Dream Feeder Tutorial

How To: Automated Feeds:Advanced Text Feed from aSingle PageThe feed you're going to build is a feed of news items from the home page of the ACME website. This will bean Automated RSS text feed that you will use the Advanced interface to build.

Please open the index.html file in the root of the website in Dreamweaver. In this scenario the ACME F&Nhome page includes news blurbs and links to pages all over the website in order to promote whateverhappens to be going on within the organization. This is pretty typical for a home page.

In presenting an effective website consistency in design is a key element of conveying information. To dothat task Dreamweaver provides both templates and style sheets. Templates control page structure andstyle sheets control the graphical presentation of content. These two tools allow content to be restricted inplacement within the document (template regions) and adherent to a predefined visual order (style selection- also called classing). By making those associations between content and presentation we convey therelationships of content - because what something looks like is what something is (especially in anenvironment like a website, where there is little additional context beyond the page). Most importantly, we

94

Page 95: Rss Dream Feeder Tutorial

can then use this relationship in reverse to identify content and its value. In other words, if we make atemplate with a box on it for a headline, on any page using that template when we look in that box we canexpect to find text that is the headline for the page. Now here's the kicker, templates and styles leave animprint on the code for the page, so if we're really clever we can programmatically collect content for ourRSS feed by looking for that code.

Examine this home page and you'll see repeating template regions define the structure of the page while thestyle sheet makes each headline (styled as HPStoryRevHead) look like a headline. Select the first headlinefrom the page and look at the bottom of the Dreamweaver window. You can see the document's structurereflected in the tags displayed - td.HPStoryRevHead is the current selection within a tr in a table in amminstance:editable (an editable template region). If you look at the page there is a teal tab indicating thename of the template region: HomePageStory. Remember that because you'll need it later, especially thetd.HPStoryRevHead and the HomePageStory template region.

Now begin creating a new feed by pressing the new feed button in the RSS DreamFeeder floating panel.

95

Page 96: Rss Dream Feeder Tutorial

When the dialog is displayed you are presented with the basic interface, but in this tutorial you'll be using theadvanced interface so click on the Advanced tab.

The first panel of the Advanced interface provides fields for descriptive content for the feed. The onlyrequired fields are Title and Description, but the more information you provide the better. To navigate in theadvanced interface make selections from the left side Category list. Navigation is not required to besequential but in this tutorial you'll do it that way to keep things simple. Go to the next panel by selectingFeed Settings from the Category list.

96

Page 97: Rss Dream Feeder Tutorial

In Feed Settings you can decide what type of a feed you are building (Text Feed) and what file format to use(RSS 2.0). But most importantly you can tell it to collect content from Files and that you want to have yourcomputer do the work of updating the feed (Local Processing). Notice that when you select Files as thesource of the content many more panels become available. Next, provide the Site Settings.

97

Page 98: Rss Dream Feeder Tutorial

Under Site Settings you'll give RSS DreamFeeder the Base URL -- the url of the remote website where thefiles will reside. This is important because your feed could be republished on any number of differentwebsites and you want the links to still work, so they have to be full links. If you already provided thisinformation to Dreamweaver when you setup the site that information will be copied here, but if you didn'tthen you'll have to enter it here yourself. Once entered move on to Summarize.

Under Summarize you will define where the file (or files) resides within the website that you want RSSDreamFeeder to extract content from. In this tutorial the source is the content of a single page so we selectPage and then press the plus button to the right of the list so we can define which one we'll use. Select theindex.html file in the root of the website. The other settings don't apply (mostly) because we are specificallytargeting a single page -- there are no subdirectories in a single page. Now move on to Elements.

98

Page 99: Rss Dream Feeder Tutorial

Under Elements you can decide which elements of the feed to include. The initial settings here are based onthe feed type selection you made in Feed Settings. However you can choose to include or exclude anyelements except for Headline (that's for RSS feeds, for ATOM feeds its a slightly different set). As I am sureyou can imagine, it is very simple to include or exclude content elements. If you click off Author you will see

99

Page 100: Rss Dream Feeder Tutorial

the Author item in the Category list on the left is removed. Be sure to turn Author back on if you turned it off.(Yes, there was no author content on the page, but that's OK because you're doing advanced stuff here.)

Under Headline configure RSS DreamFeeder to extract the content of the TD tag with CLASS (associatedstyle) of HPStoryRevHead from the template region called HomePageStory in the HomePageTemplate. Likethis:MatchType: TagTag: tdLocation: Within Template RegionRegion: HomePageTemplate: HomePageStoryWith Attribute: Class = HPStoryRevHeadExtract: Content

100

Page 101: Rss Dream Feeder Tutorial

It is important to test your configuration to be sure that it is working. So press the Test button.

You will be presented with the Test dialog to test your settings. Select the index.html file in the root of the siteas the Sample File.

101

Page 102: Rss Dream Feeder Tutorial

When you press the Test the Match button you should see the headline text (Employee Special) in theresults box.

102

Page 103: Rss Dream Feeder Tutorial

Now you could proceed screen by screen to manually enter the settings for each of the elements like youjust did for the Headline, but you can also use the Content Sampler to build the settings. Press the ContentSampler button at the top right of the panel. This will save a temporary copy of the feed, close the Editdialog, and launch the Content Sampler in the RSS DreamFeeder floating window.

The Content Sampler has a list of Content elements to extract from the page. Samples with a dash "-" havenot been defined yet. You can see that the Headline sample is already defined. If you click on Headline inthe list of Samples the corresponding text within the document will be selected.

103

Page 104: Rss Dream Feeder Tutorial

To Sample the Story elements select if from the list in the Content Sampler, then select the descriptive textbelow the headline on the home page, then press the Sample button in the top left of the floating window.

The content sampler now shows the sample as a P tag (or whatever you sampled) that is classedHPStoryContent.

104

Page 105: Rss Dream Feeder Tutorial

Repeat the process for the link (it says "Read More"). Select it and sample it.

105

Page 106: Rss Dream Feeder Tutorial

Now do it once more for the date (yes dates can be read from the text in the file).

106

Page 107: Rss Dream Feeder Tutorial

A small note about dates: Dates are tricky because they have to be real dates that the computer can easilyrecognize as a date. If it is unrecognized then the modification date will be used instead. As long as youstick to basic text (Jan, January, Feb, February, etc...) and numbers (0-31) and slashes (5/1 or 5/1/2009) itwill work.

Now press the Done button to return to the Edit dialog. When you return to the edit dialog you'll come backto the same panel you left from (the Headline panel). If you click through the other panels you will see thatthey have captured their settings from the Content Sampler.

107

Page 108: Rss Dream Feeder Tutorial

The only element that doesn't have a configuration is the Author element. In this scenario the Author shouldalways be the same thing (a Fixed Value): the text "ACME F&N". So select Fixed Value and enter ACMEF&N for the text.

The configuration is now complete so press Save and save it as index.rss in the root directory.

108

Page 109: Rss Dream Feeder Tutorial

Once saved, the feed will be listed in the RSS DreamFeeder floating window and it will display how manyfiles need to be checked for content -- for feeds of this type there is only ever 1 file, the file defined as thesource.

The file must be examined for content and the content must be extracted and placed into the feed. That iscalled Processing the feed, and you do it by pressing the Process button.

109

Page 110: Rss Dream Feeder Tutorial

While processing you will see a dialog box that informs you about what is going on.

When the processing is done you will see that your feed has 0 files to check (in the list in the RSSDreamFeeder floating panel).

Finally, you can try the feed out in your news reader. I like to use Safari for testing because I can just dragthe file I created into the window. You will probably notice that the link is pointing off to whatever website youconfigured earlier and not to the local file. This is the way an RSS feed is supposed to be. Your RSS content

110

Page 111: Rss Dream Feeder Tutorial

will be repeated on other websites so it has to have an absolute URL for every link. But if you don't keep thatin mind it can be startling to see the link not work (at least not locally). I want to assure you that you did itright.

If you happen to have a web server on your computer like I do on mine and if you provide the right site URLyou can make the links work. This sort of setup is how most web developers work now anyhow, especiallyanyone doing server-side coding (like asp/php/etc...). The relationship between absolute URLs and relative/local URLs is one of the stickiest bits of work, but once configured, RSS DreamFeeder handles it for you.

Congratulations -- You have created an RSS feed.

An RSS feed is not really ever a finished document. It is a reflection of ongoing activity within your website.The index.rss feed isn't just another list of items in the site, it is an ongoing list of site news, or morespecifically new content from the home page (the source of this feed). And the great beauty of theconfiguration work you've done on this feed is that once the home page is updated all you will have to do toupdate the RSS feed is press the Process button. I like that so I'm going to say it again -- one click andyou're updated. Outstanding.

Now go back to the home page in Dreamweaver so you can edit it. The news items are in a repeatingtemplate region called HomePageStoryBlock. On the layout there is a light blue tab with that text on it alongwith controls to add, remove, shuffle up and shuffle down a region within this repeating block. The addbutton always adds after the currently selected block. So click on the teal tab for the first HomePageStoryblock then click the plus button to add a new repeating block, then click the shuffle up button to move thatnew block to the top of the stack.

111

Page 112: Rss Dream Feeder Tutorial

Now make the following changes:change "Entry Title" to "New Job Openings Posted",change the date to "May 28"change the story blurb to "We've got new openings, including CEO."change the Read More link to point to the jobbank.html page in the 03_HumanResources folder

112

Page 113: Rss Dream Feeder Tutorial

You can use whatever method you like to get the new content onto the page. What I outlined above is areflection of my preferred methods. Everyone uses Dreamweaver in their own way, and that's fine as long asyou get the job done.

Now that you are done editing the home page you need to save it. When you do save it you will notice thatthe files list in the RSS DreamFeeder floating panel now indicates that there is 1 file to check for your feed.

You have now arrived at the single-click update. Simply select your feed from the files list in the RSSDreamFeeder floating panel (probably already selected) and press the Process button.

113

Page 114: Rss Dream Feeder Tutorial

Your feed is processed, the new content is extracted from the source page, and it now is in the RSS feed.

Check it for yourself by loading the feed into your RSS reader (if you used Safari you can just press therefresh button in Safari).

114

Page 115: Rss Dream Feeder Tutorial

Congratulations -- You have updated an RSS feed.

Now consider what should happen if you were to remove the bottom entry from the list. Should that entryremain in the RSS feed or should it be removed? There are two different schools of thinking on this and theyboth have valid perspectives.

115

Page 116: Rss Dream Feeder Tutorial

One perspective is that nothing should happen, the RSS feed is an historical document with content anddates related to that content intact within that document. As long as that content is still valid and thatdestination is still a good link then why not keep it, even if it has been removed from the home page. Its notthat this isn't news any longer, its that we ran out of space on the home page. Think of it like a blog page, itmay only list the three most recent blog entries, but the rest of them are still valid and linking to them fromthe RSS feed is still a good idea.

The alternate perspective is that the RSS feed should only contain content that exists on the page. If it gotremoved from the page it was removed for a reason and you don't want it to be hanging out still linked tofrom the RSS feed or for people to get Page Not Found errors when they click on the link from their RSSreaders (assuming the content was actually deleted and not just the blurb on the home page).

The first perspective is the default behavior for RSS DreamFeeder. Older entries remain in the feed untilenough new content is collected to push the old content beyond the maximum length of the feed (a settingyou can change in Feed Settings under the Advanced tab).

If you want RSS DreamFeeder to adopt the second perspective -- to delete content when it is removed fromthe source page -- then you need to change the Retain Entries setting (in Summarize under the Advancedtab). Please use caution when changing this setting. This is the only setting (besides max length) that willautomatically remove content from your feed.

116

Page 117: Rss Dream Feeder Tutorial

One other thing you might be interested in. If you want to edit the content of the feed directly, includingdeleting entries, you can use the Content tab of the Edit dialog. Simply select your feed from the files list inthe RSS DreamFeeder floating panel and press the Edit button (looks like a little pencil) and then press theContent tab. You can change headlines, stories, dates, links or whatever you need (to fix a stupid typingerror). This is also a useful way to check the content of a feed if you don't have an RSS reader handy.

117

Page 118: Rss Dream Feeder Tutorial

If you're interested you may choose to proceed to another tutorial::

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

118

Page 119: Rss Dream Feeder Tutorial

How To: Automated Feeds:Advanced Text Feed from aDirectoryThe feed you're going to build is a feed of job listings from the JobBank of the ACME website. This will be anAutomated RSS text feed that you will use the Advanced interface to build.

Please open the jobbank.html file in the 03_HumanResources folder of the website in Dreamweaver.

Also, please open 090527_ChiefExec.html from the JobBank folder in the 03_HumanResources folder.

119

Page 120: Rss Dream Feeder Tutorial

In this scenario the JobBank page lists job openings with links to pages that have detailed descriptions ofthe job. For job seekers these detailed descriptions, which include job requirements, are valuable in theirentirety, and not just as blurbs, so this feed will extract content not from the listing page, but from thecontents of the directory itself.

In presenting an effective website consistency in design is a key element of conveying information. To dothat task Dreamweaver provides both templates and style sheets. Templates control page structure andstyle sheets control the graphical presentation of content. These two tools allow content to be restricted inplacement within the document (template regions) and adherent to a predefined visual order (style selection- also called classing). By making those associations between content and presentation we convey therelationships of content - because what something looks like is what something is (especially in anenvironment like a website, where there is little additional context beyond the page). Most importantly, wecan then use this relationship in reverse to identify content and its value. In other words, if we make atemplate with a box on it for a headline, on any page using that template when we look in that box we canexpect to find text that is the headline for the page. Now here's the kicker, templates and styles leave animprint on the code for the page, so if we're really clever we can programmatically collect content for ourRSS feed by looking for that code.

Examine the Chief Exec job announcement page and you'll see a template region called PageContent thatdefines the variable part of the page (not the navigational stuff) while the style sheet makes the headline(styled by changing the presentation of the H3 tag) look like a headline. Select the headline from the pageand look at the bottom of the Dreamweaver window. You can see the document's structure reflected in thetags displayed - h3 is the current selection within a mminstance:editable (an editable template region). If youlook at the page there is a teal tab indicating the name of the template region: PageContent.

120

Page 121: Rss Dream Feeder Tutorial

Now begin creating a new feed by pressing the new feed button in the RSS DreamFeeder floating panel.

When the dialog is displayed you are presented with the basic interface, but in this tutorial you'll be using theadvanced interface so click on the Advanced tab.

121

Page 122: Rss Dream Feeder Tutorial

The first panel of the Advanced interface provides fields for descriptive content for the feed. The onlyrequired fields are Title and Description, but the more information you provide the better. To navigate in theadvanced interface make selections from the left side Category list. Navigation is not required to besequential but in this tutorial you'll do it that way to keep things simple. Go to the next panel by selectingFeed Settings from the Category list.

122

Page 123: Rss Dream Feeder Tutorial

In Feed Settings you can decide what type of a feed you are building (Text Feed) and what file format to use(RSS 2.0). But most importantly you can tell it to collect content from Files and that you want to have yourcomputer do the work of updating the feed (Local Processing). Notice that when you select Files as thesource of the content many more panels become available. Next, provide the Site Settings.

Under Site Settings you'll give RSS DreamFeeder the Base URL -- the url of the remote website where thefiles will reside. This is important because your feed could be republished on any number of differentwebsites and you want the links to still work, so they have to be full links. If you already provided thisinformation to Dreamweaver when you setup the site that information will be copied here, but if you didn'tthen you'll have to enter it here yourself. Once entered move on to Summarize.

123

Page 124: Rss Dream Feeder Tutorial

Under Summarize you will define where the files reside within the website that you want RSS DreamFeederto extract content from. In this tutorial the source is the content of a directory so we select Directory and thenpress the plus button to the right of the list. Select the JobBank directory in the 03_HumanResourcesdirectory. You don't want to include subdirectories (there aren't any), you want to exclude temp files, you'rejust looking for HTML files (the default) and you're not restricting the template or the file names, so most ofwhat you have to do is already done. The last change here is to capture files on Creation, not Modification.This assures that new job files are included, but old job files don't get processed again. Now move on toElements.

124

Page 125: Rss Dream Feeder Tutorial

Under Elements you can decide which elements of the feed you are going to include. The initial settingshere are based on the feed type selection you made in Feed Settings. However you can choose to includeor exclude any elements except for Headline. So for this feed you're going to exclude Author (uncheck that)and include Keywords (check that) to help make the jobs more easily searchable.

125

Page 126: Rss Dream Feeder Tutorial

Now you could proceed screen by screen to manually enter the settings for each of the included elements,but you can also use the Content Sampler to build the settings quicker (for the parts that are text on thepage anyway). Press the Content Sampler button at the top right of the panel. This will save a temporarycopy of the feed, close the Edit dialog, and launch the Content Sampler in the RSS DreamFeeder floatingwindow.

The Content Sampler has a list of Content elements. Samples with a dash "-" have not been defined yet.You are going to Sample the elements you want to include by selecting the entry in the Content Sampler,highlighting text from the page (in this case the 090527_ChiefExec.html page), and then pressing theSample button in the top left of the floating window.

126

Page 127: Rss Dream Feeder Tutorial

Select Headline from the content sampler. Highlight the headline text within the file and press the samplebutton to select that text.

The content sampler now shows the sample as an H3 tag (or whatever you sampled).

127

Page 128: Rss Dream Feeder Tutorial

Repeat the process for your story. Select Story in the Content Sampler. In this case you have a templateand you want to select the entire template region so highlight the whole thing (or just click on the tealPageContent tab at the top) and press the Sample button.

128

Page 129: Rss Dream Feeder Tutorial

The other elements don't exist on the page itself so we'll do the job manually back in the Edit dialog. Thecontent sampler may not have done the whole job, but it did give you a good start. Press the Done button toreturn to the Edit dialog.

When you return to the edit dialog you'll come back to the same Elements panel.

Now go to the panel for defining content extraction for Headline. You'll see that it already has the H3 tagdefined, but I like to be more precise if I can be so that if the page changes and there is an H3 before thisone or added to the template or something I can still use these settings. The headline was within the story,so restrict the location to "Within the Story". Now move on to Story.

129

Page 130: Rss Dream Feeder Tutorial

The story settings from the Content Sampler are perfect so we will leave them alone. On to Link.

Link's default setting is to use the location of the current page that we are extracting from. That is exactlywhat you want to do here -- have the link point back to the original file that RSS DreamFeeder is pullingcontent from. So don't change that either. On to Date.

130

Page 131: Rss Dream Feeder Tutorial

Now Date defaults to the Current Page's Modification Date, which is useful, but not really what we're after.What we really want is the page's Datestamp, so we'll change the Match Type to be DreamweaverDatestamp. Page Creation might also be useful but if you're the sort of people who don't create, butduplicate pages then you'll run into problems. OK, on to Keywords.

131

Page 132: Rss Dream Feeder Tutorial

Keywords is the one place where you'll have to do some work. You want to extract content from a META tag-- <meta name="keywords" content="value, value, value">. The specific meta tag uses name as itsidentifying attribute and content to contain the stuff that to include in the feed. So to configure this you'll setMatch Type to Tag, enter "meta" as the Tag we'll match, use With Attribute to find a NAME equal to"keywords" and Extract the Attribute Value of the "content" attribute.

Now you absolutely should test any manually-entered configuration like this one to be sure your extractionsettings return the right content. Press the test button in the top-right corner of the Edit dialog. You will bepresented with the Test dialog where you can try out the settings.

132

Page 133: Rss Dream Feeder Tutorial

Now select the 090527_CheifExect.html file to use as the Sample file. Then press the Test button. Youshould see the results as a list of values to use for the keywords in this entry.

133

Page 134: Rss Dream Feeder Tutorial

The configuration seems to be working so save the feed within the 03_HumanResources directory as"jobs.rss".

Once saved, the feed will be listed in the RSS DreamFeeder floating window and it will display how manyfiles need to be checked for content.

134

Page 135: Rss Dream Feeder Tutorial

The files must be examined for content and the content must be extracted and placed into the feed. That iscalled Processing the feed, and you do it by pressing the Process button.

While processing you will see a dialog box that informs you about what is going on.

When the processing is done you will see that your feed has 0 files to check (in the list in the RSSDreamFeeder floating panel).

135

Page 136: Rss Dream Feeder Tutorial

Finally, you can try the feed out in your news reader. I like to use Safari for testing because I can just dragthe file I created into the window. You will probably notice that the link is pointing off to whatever website youconfigured earlier and not to the local file. This is the way an RSS feed is supposed to be. Your RSS contentwill be repeated on other websites so it has to have an absolute URL for every link. But if you don't keep thatin mind it can be startling to see the link not work (at least not locally). I want to assure you that you did itright.

136

Page 137: Rss Dream Feeder Tutorial

If you happen to have a web server on your computer like I do on mine and if you provide the right site URLyou can make the links work. This sort of setup is how most web developers work now anyhow, especiallyanyone doing server-side coding (like asp/php/etc...). The relationship between absolute URLs and relative/local URLs is one of the stickiest bits of work, but once configured, RSS DreamFeeder handles it for you.

Congratulations -- You have created an RSS feed.

An RSS feed is not really ever a finished document. It is a reflection of ongoing activity within your website.The jobs.rss feed isn't just another list of open jobs in the site, it is an ongoing list of new content from theJobBank directory. And the great beauty of the configuration work you've done on this feed is that once thenew job files are added to the JobBank all you will have to do to update the RSS feed is press the Processbutton. I like that so I'm going to say it again -- one click and you're updated. It just doesn't get better thanthat.

Now go back to Dreamweaver. Use the Files panel to move the 090528_CFO.html file from newjobs intoJobBank in the 03_HumanResources folder. If you are prompted to update links to the page you should doso.

137

Page 138: Rss Dream Feeder Tutorial

Now look at the RSS DreamFeeder floating panel files list and you'll see that your feed says it has 0 files tocheck. Huh? 0? Nuts.

Why does it say 0? Well if you look at the Last Updated date for your feed you'll see that it was last updatedtoday (remember, you were the one who did it). Today is later than the creation date of the090528_CFO.html file so RSS DreamFeeder assumes that this file has nothing new to offer. In most casesthis is right, creating a saving new content within a directory will put creation dates that work with thisapproach. However, there are times when you want to be smarter than the software -- and in this case youcan be.

Select your feed from the RSS DreamFeeder list (if its not already selected) and hold down the option/altkey and the shift key and press the process button with the mouse. This is called a power click and its forpower users like yourself. You will be prompted to confirm that you want to change the date of the feedwithout processing it. Click OK.

138

Page 139: Rss Dream Feeder Tutorial

What you have just done is changed the Last Updated date of the feed to match the date of the final entry inthe feed. That also means that it will now use that date as a comparison when looking for new files to check.And now if you check the list in RSS DreamFeeder it will indicate that there is 1 file to check for new content.(If not press the refresh button).

You might also want to know that holding down just option/alt while clicking the Process button will changethe Last Updated date to today's date. This way RSS DreamFeeder will only capture files changed from nowon and ignores any previous changes. This is useful if you've made lots of changes or new files that you justwant to ignore and not include in your feed -- most commonly something like a template change that impactsall pages within your site.

You have now arrived at the single-click update. Simply select your feed from the files list in the RSSDreamFeeder floating panel (probably already selected) and press the Process button.

139

Page 140: Rss Dream Feeder Tutorial

Your feed is processed, the new content is extracted from the source page, and it now is in the RSS feed.Check it for yourself by loading the feed into your RSS reader (if you used Safari you can just press therefresh button in Safari).

140

Page 141: Rss Dream Feeder Tutorial

Congratulations -- You have updated an RSS feed.

If for any reason you had trouble getting the steps above to capture a particular file you could force the feedto include the file by editing the feed directly. You could select your feed, press the Edit button and then clickthe Content tab. This allows you to change your feed's content directly. Click the Import button and selectthe file you want to force the feed to include and it will be processed (using the settings you have alreadyestablished) and included in your feed. You can always edit the content of the any feed you create with RSSDreamFeeder, including adding or deleting entries, by using the Content tab of the Edit dialog.

141

Page 142: Rss Dream Feeder Tutorial

Now consider what should happen if you were to remove one of the files from the JobBank directory. Shouldthat entry remain in the RSS feed or should it be removed? There are two different schools of thinking onthis and they both have valid perspectives.

One perspective is that nothing should happen, the RSS feed is an historical document with content anddates related to that content intact within that document.

The alternate perspective is that the RSS feed should only contain content that exists within the directory. Ifit got removed from the directory it was removed for a reason and you don't want it to be hanging out stilllinked to from the RSS feed or for people to get Page Not Found errors when they click on the link from theirRSS readers.

The first perspective is the default behavior for RSS DreamFeeder. Older entries remain in the feed untilenough new content is collected to push the old content beyond the maximum length of the feed (a settingyou can change in Feed Settings under the Advanced tab).

If you want RSS DreamFeeder to adopt the second perspective -- to delete content when its the sourcepage is removed from the site -- then you need to change the Retain Entries setting (in Summarize underthe Advanced tab). Please use caution when changing this setting. This is the only setting (besides maxlength) that will automatically remove content from your feed. This is particularly dangerous if you don't haveaccess to the entire set of files (working remotely or in a unique development environment) because itchecks to see if the file exists and if for any reason you can't access the file the entry is removed from theRSS feed. So be careful is all I'm saying.

142

Page 143: Rss Dream Feeder Tutorial

If you're interested you may choose to proceed to another tutorial::

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Very Advanced Text Feed from Multiple Directories with File Name

Filters and a Regular Expression Search

143

Page 144: Rss Dream Feeder Tutorial

How To: Automated Feeds:Very Advanced Text Feed fromMultiple Directories with File NameFilters and a Regular ExpressionSearchI'm going to assume that you already know how to use RSS DreamFeeder fairly well. If you are not alreadyfamiliar with it then I would recommend that you first go through one of the other tutorials. If you're ready toproceed then we should talk about the scenario you are going to be working with.

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory

The feed you're going to build is a promotional feed of press releases for both products and public relations.This will be an Automated RSS text feed that you will use the Advanced interface to build.

In this scenario ACME has two groups that release content for the press. The first is Product Management,who issue press releases related to new and updated products. The second is Public Relations, who issuepress content for promotional purposes, including both press releases and press notes. They both have theirown directories which contain this content, in 04_ProductManagement/releases and 06_PublicRelations/content respectively. A further examination of the PR/content directory reveals that PR has mixed bothreleases and notes in the same directory. If you are to build a feed with just press releases then you willneed to filter out the notes.

144

Page 145: Rss Dream Feeder Tutorial

If you open an example release from both pm/releases and pr/content you'll find that they look very similarand that key areas are the same. The template region has the same name (PageContent) the headline usesthe same tag (H3) with no style (the style is overriding the normal display properties of the H3 tag).

As I have said before, consistency in design is a key element of effectively conveying information -- andtemplates and style sheets let you do that well. Templates control page structure and style sheets control thegraphical presentation of content. These two tools allow content to be restricted in placement within thedocument (template regions) and adherent to a predefined visual order (style selection - also calledclassing).

Moreover, classing for styles (or dropping in a template region) is also tagging with meta data. If a headlineis classed HomePageHeadline because the style sheet says so, then we can reverse that relationship and

145

Page 146: Rss Dream Feeder Tutorial

say that any text/data with the class HomePageHeadline is a headline. What something looks like is what itis and is also what it looks like.

You should also notice the names of the files. All releases are called WHATEVERRelease.html. The PMfolks and the PR folks have slightly different naming conventions, but they both agree on calling a releaseRelease.html. Enforcing naming conventions, especially on a very large website, can be difficult but it isabsolutely worth while because you can then gather much information about content before the file is evenopened. No serious attempt at a large-scale website should forgo naming conventions -- you'll suffer for it.

So start a new feed by pressing the new feed button in the RSS DreamFeeder floating panel.

When the dialog is displayed you are presented with the basic interface, so click on the Advanced tab.

146

Page 147: Rss Dream Feeder Tutorial

The first panel of the Advanced interface provides fields for descriptive content for the feed. The onlyrequired fields are Title and Description. Now go to Feed Settings from the Category list.

147

Page 148: Rss Dream Feeder Tutorial

In Feed Settings you will decide what type of a feed you are building (Text Feed) and what file format to use(RSS 2.0). Then tell it to collect content from Files and that you want to have your computer do the work ofupdating the feed (Local Processing). Next, provide the Site Settings.

Under Site Settings you'll give RSS DreamFeeder the Base URL that it will use to translate the local links tofull URLs for the feed. Once entered move on to Summarize.

148

Page 149: Rss Dream Feeder Tutorial

Under Summarize you will define where the files reside within the website that you want RSS DreamFeederto extract content from. You'll be extracting content from two directories so select Directories and then usethe plus button on the right to add pm/releases and pr/content to the list of directories. Then tell it that thefiles names end with Release.html so that RSS DreamFeeder will only grab the files that match the namingconvention.

149

Page 150: Rss Dream Feeder Tutorial

150

Page 151: Rss Dream Feeder Tutorial

Under Elements you can decide which elements of the feed you are going to include. But in this case we'regoing to stick to the basic set.

Now launch the content sampler and sample the Headline and the Story (the whole PageContent templateregion). Then Press the Done button to return to the Edit dialog.

151

Page 152: Rss Dream Feeder Tutorial

When you return to the edit dialog you'll come back to the same Elements panel. Now go to the panel fordefining content extraction for Headline. You'll see that it already has the H3 tag defined, but I like to bemore precise if I can be so that if the page changes and there is an H3 before this one or added to thetemplate or something I can still use these settings. The headline was within the story, so restrict thelocation to "Within the Story". Now move on to Story.

The Story settings from the Content Sampler are perfect so we will leave them alone. On to Link.

152

Page 153: Rss Dream Feeder Tutorial

Link's default setting is to use the location of the current page that we are extracting from. That is exactlywhat you want to do here -- have the link point back to the original file that RSS DreamFeeder is pullingcontent from. So don't change that either. On to Date.

153

Page 154: Rss Dream Feeder Tutorial

Now Date defaults to the Current Page's Modification Date, which is useful, but not really what we're after. Ifa page is modified, even for something as simple as fixing a typo then the modification date will be off. Sothe right answer is to extract the date from the dateline text in the document. This is where a Dreamweaverdatestamp would have proven useful (and is an option in Match Type popup menu) but the authors of thepage didn't provide one. So there is only one final option - an advanced text search called a RegularExpression. Now there may be multiple dates on a page so to be sure to find the right one look for the firstone after the Headline.

You want to match the dateline string that looks likeMay 27, 2009WORD-SPACE-NUMBER-COMMA-SPACE-TWOTHOUSANDSOMETHING

In regular expression there are special strings that mean a particular character: a word character (\w); aspace character (\s); a digit character (\d). These strings are usually then modified to indicate how manycharacters to include: zero or more (*); one or more(+); zero or one [maybe there maybe not] (?). Anycharacters that are not these characters (plus some others) are what they are: a means an a; R means anR; 2 means a 2. Of course this is just the tip of the regular expression iceberg and you can learn lots moreabout it in the documentation or by searching online. Regular expressions are one of the most powerful textmanipulation tools you can use and its part of RSS DreamFeeder.

So back to the match. To match something that looks like thisMay 27, 2009WORD-SPACE-NUMBER-COMMA(maybe)-SPACE-TWOTHOUSANDSOMETHING\w+ \s+ \d+ ,? \s+ 20\d+\w+\s+\d+,?\s+20\d+

The last line above is the final regular expression you want to use. If for any reason it didn't match themodification date of the file (the original default) will be used instead. With something like this, where even asmall typo can happen easily and get you into a world of trouble you have got to test it out. Point the Testtool at one of your press releases (I used 090528TastyRelease.html from pr/content) and give it a shot.

154

Page 155: Rss Dream Feeder Tutorial

Now on to the Author element. In this scenario the Author should always be the same thing (a Fixed Value):the text "ACME F&N".

The configuration is now complete so press Save and save it as releases.rss in the root directory.

155

Page 156: Rss Dream Feeder Tutorial

You can see that there are 5 files to check -- more than in either directoryalone. That means that it is findingcontent to collect in both directories.

Process the feed and try it in your news reader.

156

Page 157: Rss Dream Feeder Tutorial

Congratulations -- You have created a very advanced RSS feed.

If you're interested you may choose to proceed to another tutorial::

• How To: Automated Feeds: Basic Text Feed from a Single Page• How To: Automated Feeds: Basic Podcast from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Single Page• How To: Automated Feeds: Advanced Text Feed from a Directory

157

Page 158: Rss Dream Feeder Tutorial

How To: Notes:For Dynamic Content Websites(Database-Driven Websites)If you have already built your website with a database and you want to use thatdatabase-drivencontent as the source for your RSS feed I applaud your thinking,sadly I have to say that RSSDreamFeeder v 2 doesn't support that. We're workingon an update to provide support in thisscenario and we plan to deliver it verysoon. RSS DreamFeeder v 2 does work with dynamicpages (ASP/JSP/PHP/CFM) butit uses the source code of the page to draw from. This is veryuseful for websitesthat are product oriented -- where each product has its own page and the shoppingcartservices are provided by the dynamic code.

158

Page 159: Rss Dream Feeder Tutorial

How To: Notes:Downloading and InstallingRSS DreamFeederYou will, of course, need a copy of RSS DreamFeeder, available from RNSoft athttp://www.rnsoft.com/products/rssdreamfeeder

You install RSS DreamFeeder using the Extension Manager application that came with yourcopy of Dreamweaver. All you should have to do is double-click the MXP file that youdownloaded and Extension Manager should launch and ask you if its OK to install. You mayneed to restart Dreamweaver after installing the extension but you don't need to restart yourcomputer.

To launch RSS DreamFeeder select RSS DreamFeeder from the Window menu in Dreamweaver. This willopen the DreamFeeder panel and display a list of rss files within the current website.

It is very important to register your version of RSS DreamFeeder, not just because you should pay for thesoftware if you want to use it, but because it directly effects the content of your feeds. All feeds generatedfrom an unregistered version of RSS DreamFeeder will have "RSS Replay is Unregistered" as the headlineof each story. To remove this content you must enter your registration number in the text field in the registerpanel and click the Check Code button.

Access the register panel by clicking on the Register button at the top right of the RSS DreamFeeder panelor by opening RSS DreamFeeder's preferences and selecting Register from the Category list on the left.Enter the code and press the Check Code button. The text under the code field will display either Valid orInvalid to let you know that your registration code is working.

Get your registration code from the RNSoft website at http://www.rnsoft.com.

Unregistered versions will have a red Register button in the RSS DreamFeeder panel. This button turnswhite with a green key when a valid registration code is entered.

159

Page 160: Rss Dream Feeder Tutorial

160

Page 161: Rss Dream Feeder Tutorial

How To: Notes:Basic vs Advanced Feed SettingsThe audience of Dreamweaver users is wide and diverse, with some users having a great deal of technicalknowledge and others having very little. It is because of this diversity that Dreamweaver's authors haveprovided basic and advanced interfaces for setting up a website or code and graphical interfaces formanipulating web pages. It is in that same spirit that we embrace both a basic and advanced interface forconfiguring feeds. The basic interface guides you through the process in a step-by-step manner, while theadvanced interface reveals extra controls and options valuable for special scenarios (like iTunes ID). Thesetwo interfaces are really just two different presentations of the same toolkit. Starting with the basic interfaceand moving to the advanced after a first pass at configuration is often a very useful approach.

161

Page 162: Rss Dream Feeder Tutorial

How To: Notes:A Small Note About UploadingRemember to upload your files. RSS DreamFeeder builds links to your content within the RSSfeed's XML, and just like with HTML, graphics are separate files and must be uploaded to theserver independently. Its not generally a big deal with automated feeds because the content isusually there already, but for manual feeds or feeds where the primary content is audio(podcast) or graphical (photocasts) you'll want to be sure the files are uploaded to the server.

162

Page 163: Rss Dream Feeder Tutorial

How To: Notes:Linking to Your FeedLinking places an HTML link to the feed within the current layout. Linking can place text or graphics on thepage. You may choose from included graphics or add your own graphics. Linking can be used with specialprotocols or queries for adding this feed to other programs or other websites. These methods make it easierfor your readers to use the feeds you are building. RSS DreamFeeder comes preconfigured with somemethods but you can also add your own linking methods too using the Link preferences.

Most of the time there are two kinds of links that you want to establish. You want to place an RSS button onthe page, and you want the web browser's built in RSS button (or other features) to be activated. The first isjust a regular link that gets built pointing to the RSS file, the second is a link tag placed in the head of thedocument specifying the RSS file as an alternate source of content. RSS DreamFeeder does both.

For the first you will click within the layout wherever you want to add a little RSS button. Then select yourfeed from the files list in the RSS DreamFeeder floating panel. Then click the Link button and select the typeof link you want to add: Method: Normal Link; Text: RSS Feed; Image: Feed Icon 16. Then press OK andyou will see that the link has been added to your page.

163

Page 164: Rss Dream Feeder Tutorial

For the second you don't need to click anywhere within the document because the layout will not beimpacted by a link added to the head of the document. Then select Alternative Content for the method. Textand Image don't apply this time so leave them blank. The press OK and you won't see anything. But if youtry it in an RSS capable browser you will see the feature (a button or whatever) active.

164

Page 165: Rss Dream Feeder Tutorial

How To: Notes:Emptying Your FeedWhen you are building and testing an RSS feed (especially an automated feed) you may end up with allkinds of random entries within your feed. You may also simply want a fresh start on your feed.

To empty the contents of the feed without changing the settings established for the feed hold down theOption (mac) or Alt (win) key while clicking the Delete button (trash can icon) in the RSS DreamFeederfloating panel. You will be prompted to confirm your command.

alt/option +

165

Page 166: Rss Dream Feeder Tutorial

How To: Notes:Dates and File CaptureWhenever any feed is processed or saved the last updated date is changed to be the current date. Yourfeed's last updated date is an important element of automated feeds because only files newer than that dateare examined for content to add to the feed.

Controlling the dates on a feed allows you to control what files will be examined. There are two simple thingsthat you might want to do to modify the date beyond what happens automatically: change the date to todayand change the date to the last time it was processed (the date on the last entry in the feed).

Hold down the Option (mac) or Alt (win) keys while clicking:

The Process button will change the last processed date on the feed to the current date without addingnew content. Doing this allows you to skip any file changes between the last processed time and the currenttime. Any files changed during that period will not be examined for content and will not have an impact onthe feed. This is particularly useful if you have made major changes to your website (like changingtemplates) that update lots of files without actually changing the substance of the pages.

The Process button with the Shift key will change the last processed date on the feed to thedate of the oldest entry in the feed without adding new content. This is useful if you have modified thecontent of the feed manually (because that will change the last updated date) and want to slide the dateback to capture file changes.

166

Page 167: Rss Dream Feeder Tutorial

How To: Notes:Importing Stuff into a Feed

At the top right of the Content tab you will see the Import button. This button launches the Importdialog box which will extract content from whatever file you specify. If your feed is a file-based feed withmatches already identified then your matches are applied to the file you have selected and the resultingcontent is imported into your feed. If your feed is a manual entry feed then your file will be opened and theContent Sampler will be launched so that you can identify what content to extract from the file. If you havedone that step before then you may optionally use your previous element identifications. If you are importinginto a normally automated feed the normal settings will be used (you don't get the option to choose newsettings).

167

Page 168: Rss Dream Feeder Tutorial

How To: Notes:Lifetime of an EntryWhen generating content for the feed older entries remain in the feed until enough new content is collectedto push the old content beyond the maximum length of the feed. This old content is retained even if thesource of the content is deleted. If you choose to turn off Retain Entries (under Advanced/Summarize) allentries within the feed are checked against their original sources and if the source is missing/deleted theentry associated with that source is also deleted.

For summaries of single pages the entries are compared with the content on the page itself. When thecontent is removed from the source page it will be removed from the feed when it is processed next.

For summaries of directories or sites, the link is what is looked at. If the link points to a file within the websiteand that file is missing/deleted the entry will be removed from the feed.

Caution: This setting must be used with care because it is the only setting that will automatically removecontent from your feed.

Retained content is useful for pages that are like blogs, where the content that was on the page yesterday isstill important today, but is simply not on the page because there is no room for it. Also, for sets of files thatmay not be available at the time of processing (especially when processing at a later date) retaining thecontent means avoiding accidental deletion of feed entries. You'll be better off using a reasonable MaxLength for the feed and let time and content do the maintenance work. You can always get an entry back bygoing to the Content tab and importing the source page. Also, if you ever want to delete an entry from yourfeed you can simply go to the Content tab, select the entry to delete and press the delete/minus button atthe top of the Entries list.

168

Page 169: Rss Dream Feeder Tutorial

How To: Notes:Working with the ContentSamplerOn any panel where you see this Content Sampler button you can launch the Content Sampler and use it todefine the extraction settings for your feed. The idea is that it is easier to point to something and say "GiveMe That" rather than figure out what HTML codes are used behind the scenes. This isn't to say that youcan't configure the extraction yourself, but rather that this can provide you with a nice starting point and ismore than sufficient for basic feeds.

When you press the Content Sampler button your feed will be temporarily saved and the Edit dialog will bedismissed. The RSS DreamFeeder floating window will now change its display to show the ContentSampler. Once in this mode you can open any files you want, highlight the content you would like to includein your RSS feed and sample it. After completing your sampling you can return to the Edit dialog by pressingthe Done button in the bottom right corner of the RSS DreamFeeder floating window.

The Content Sampler lists the Content elements your feed is defined to use and identifies if a match (orSample) has been defined for that Content. Samples identify the tag, id, class or template region for thatitem. Samples with a dash "-" have not been defined yet.

1. Choose the Content from the listIf there is a Sample definition your text selection within Dreamweaver will change to highlight thatelement

2. Select the text you want to identify within your Dreamweaver documentThis is the text you want to identify to include in your RSS feed

3. Press the Sample button to change the definition for your Content(if its not a unique sample but you want to use it anyway hold down the option or alt key when youpress the button)

Sometimes when sampling content the selected source doesn't have enough identifying information to makeit a unique sample. When this happens you will see a caution message that says the Sample is Not Uniqueand the sample's settings will not be captured. You can force the sample to be selected by holding down theOption or Alt key on the keyboard and pressing the sample button. You may also want to change thepreferences for the content sampler to make it more aggressive.

169

Page 170: Rss Dream Feeder Tutorial

170

Page 171: Rss Dream Feeder Tutorial

How To: Notes:Working with TemplatesIn presenting an effective website consistency in design is a key element of conveying information. To dothat task Dreamweaver provides both templates and style sheets. Templates control page structure andstyle sheets control the graphical presentation of content. These two tools allow content to be restricted inplacement within the document (template regions) and adherent to a predefined visual order (style selection- also called classing). By making those associations between content and presentation we convey therelationships of content - because what something looks like is what something is (especially in anenvironment like a website, where there is little additional context beyond the page). More importantly, wecan then use this relationship in reverse to identify content and extract it from the page and into our feeds.

RSS DreamFeeder is designed from the ground up to work with Dreamweaver templates. There aretemplate-oriented features throughout, including restricting the source pages to particular templates andcapturing content from specified template regions. If you templates defined in Dreamweaver they willautomatically be listed within RSS DreamFeeder and you can simply select from the lists to specify whichtemplate or region you need.

171

Page 172: Rss Dream Feeder Tutorial

How To: Notes:Working with ContributeContribute is a great tool for editing page content. It provides an excellent interface for contentauthors to modify the textual content of a page (but lacks the advanced tools designers anddevelopers need) so it is perfect for sharing the workload of creating content (get department Ato create their own pages for the site) while keeping them integrated with the templates andstyle sheets you have worked so hard to establish. Plus its much less expensive than anothercopy of Dreamweaver.

As they add their content to the site the new pages will show up in your files list within Dreamweaver. Simplyprocess that new content with RSS Dreamfeeder and an automated feed and you should be good to go.RSS DreamFeeder doesn't care what editing the HTML, only that the pages are there and they have contentto extract. However, RSS DreamFeeder is a Dreamweaver extension so it does require that you have atleast 1 copy of Dreamweaver in the workgroup.

On a technical note, Contribute has the ability to control the editorial workflow of file creation, but it does thisby creating temporary files. Those temporary files should be ignored until they become approved content.That is RSS DreamFeeder default configuration but if you need to change it you can under Advanced/Summarize.

172

Page 173: Rss Dream Feeder Tutorial

How To: Notes:Working with InContext EditingInContext is a browser-based interface for editing web pages. If you mark a piece of content as editable withInContext and then post that page to InContext you can pass a link to that page to anyone anywhere in theworld and they can edit the block you identified. Once edited you can integrated that back into your website.

RSS DreamFeeder doesn't care what created the HTML it only cares that there is a page and that it hascontent. One the file is integrated back into the file set RSS DreamFeeder will work with it.

On a technical note: InContext editable regions are identified with a DIV with a new attribute calledice:editable. As long as that DIV has a NAME, ID, or CLASS attribute it can be extracted by RSSDreamFeeder. These two tools can work together to make adding new content to your site much easier.

173

Page 174: Rss Dream Feeder Tutorial

How To: Notes:Loading Errors, MIME Types,and File ExtensionsThe default file extension for an RSS feed is ".rss". For ATOM feeds its ".atom" or ".atm". These fileextensions tell the server what kind of file it is and the server passes that information on to web browsersand news aggregators as a piece of information called the MIME type. If your server doesn't pass the rightMIME information to a web browser this can cause problems, but because these are relatively new formatsyour server may have troubles. If you are experiencing problems with these file extension change theextension to ".xml". RSS DreamFeeder can work with that file extension just as well and most web serversknow how to handle it.

174

Page 175: Rss Dream Feeder Tutorial

How To: Notes:When Your Bottom Directory Isn'tYour Root DirectoryThis is a rare exception, but some people have websites where one of the directories within the site isactually the root of the site externally -- for example a directory called "http" contains all the websites filesand maps to "http://www.site.com".

RSS DreamFeeder must convert all links from local/relative links to absolute links. To do this it must convertthe local position within the website to an absolute URL. The absolute URL in normal circumstances maps tothe root of the website, but if you have a website, like the example above, where a directory within the sitemaps to the Base URL then you must select that directory as the Alternate Root.

175

Page 176: Rss Dream Feeder Tutorial

How To: Notes: Working in aWorkgroup EnvironmentWhen working in a multi-developer environment and passing around the RSS files you (or someone youwork with) may encounter a dialog claiming that the Feed doesn't belong to the current site and asks if youwould like to add it to the site.

This happens because either the name of the site or the path to the root directory of the site has changed.RSS DreamFeeder has to maintain the relationship between file locations and absolute URLs so it mustknow the current path to root.

To avoid this problem in a multi-developer environment we suggest using a shared server volume so that thepath to the volume is the same for everyone editing the files. That's all you need to do in a Mac environmentbecause the network path will be used. The best way to do this in a Windows environment is to map a drive(I like W: for website) and just have everyone work off the mapped drive. Once the driver letter is establishedand the path consistent then you need to go to each developer's machine and be sure that the name of thewebsite is the same and the path to the site is set consistently.

176