How To Construct News Pages
This page's vital information:
- Physical location: ./pages/00_Home/Content Pages/News Pages.html
- Link here with: <a href="?page=Content Pages/News Pages">
In order for the News feed to be picked up correctly by the Atom and RSS feeds, the News file must be of a certain format:
Both the Atom and RSS feeds pick up the very first <h3> header to use as the title of the feed. Simple. The date for the feed will be taken from the file name, not the actual time stamp of the file (for such occasions where files are uploaded and dates may differ from the intended date).
After that, the first 80 characters (after XHTML tags have been stripped off) will be used as the summary.
Example News File
File name: 2009-02-23_This Page Was Written Today.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>2009-02-23 : This Page Was Written Today</title>
<meta content="Gavin Cameron" name="author">
<meta content="2009-02-23 : This Page Was Written Today" name="description">
</head>
<body>
<h3>2009-02-23 : This Page Was Written Today</h3>
<h4>What Happened?</h4>
<p>
This page was written.
</p>
<h4>When Did It Happen?</h4>
<p>
On the 23rd of February 2009.
</p>
</body>
</html>
As has previously been explained, the software parses the content file looking for the <body> and </body> tags and displays what it finds between them. However if you have the rest of the tags in the file, the file itself can be viewed in a browser window.
This file will produce the following:
Date: 23rd February 2009
Title: 2009-02-23 : This Page Was Written Today
Summary: What Happened? This page was written. When Did It Happen? On...