All of the following pages are available in the ZWAdmin/ZWNews/Examples directory.
Please feel free to adapt, mangle, change, recolor or do anything you like to make any
of them fit your site.
- News Format #1
- The default format and a fairly rich one. It allows for icons on all the stories,
puts date separators between the news on different days, shows bylines, emails links for
authors and more. Uses most of the data that can be put into a news item.
- News Format #2 (RSS 0.91 Format)
- Generates an XML version of the news that conforms to Netscape's Rich Site Summary
format. This format can be picked up by various news sites and programs and re-formatted
to be integrated into their content. To see an example of this in action visit
my.netscape.com and select the "Add Channels" button at the top of the page or visit
Netscape's site
about RSS for more info.
- News Format #3
- Format #3 is basically the same as format #1 except that there are no date dividers
between the news stories that occur on different days, there is no byline shown, and no
address for the person who added the story. Also, the filing date for the story appears
at the start of each story.
- News Format #4
- Format #4 is by itself not that interesting. It is really intended to be paired with
other formats like #1 and #3 so that it can provide a short list of headlines at the top
of a page that will jump automatically to the actual news stories further down the
page.
This example shows format #4 combined with format #3 to show how it can be used. Be sure
click on a news link up at the top.
- Add Story #1
- Example page for adding a story. Currently lacks support for adding related URLs.
Also differs from the EditStory.asp page that you use through the admin interface
because it doesn't allow for editing existing stories and when it adds a story it
doesn't automatically mark it as approved.
- Filter Usage #1
- Demonstrates simple category filtering. Only news items that are marked with
category #2 will be returned. Note: This is going to be kind of boring unless you have
a database of items and you've created a couple of categories and marked some of the
items with those categories.
- Filter Usage #2
- The opposite of the previous demonstration. All news items except those marked as
being category #2 will be returned.
- Full Story #1
- This displays a complete story (i.e. using the Body rather than the Abstract for
for a news story). Note: This format is intended to be combined with formats like #1
and #3 for websites that have long news stories. If you have any items that have both
an abstract body text, when you look at them in Format #1 you will see links under those
items that say "Full Story". Click on that link to go to this page and see the same
story with the body text instead of the abstract.
- Archives #1
- Displays all the years and months where news items were entered. Puts a separator
at the beginning of each year and shows all months that have news items with the month
name as a link and a count of the stories. Clicking on a link will take the user to a
second page to display that month's news.
- Archives #2
- Displays news within a specified date range. Takes a start and end date in the URL
and displays news from the beginning of the start date to the end of day on the end
date. Note: There is no point in running this page by itself, it works with an archives
page like Archives #1 which can feed it a date range to show. To see this page in action
click on the link above and then click on a particular month to see the Archives #2
page.