Selfless

Wednesday, May 14, 2008

Building a Multipage Website Using Liberty Basic

If you have ever wondered how its possible to build static web pages with hundreds or even thousands of web pages, then you might not have thought about using Liberty Basic.

Liberty Basic is a great programming language that makes it relatively simple to build the multi page sites that you see around the Internet.

To build a website with multiple pages, you will need to create a template for the website, and use a suitable style sheet to get the look that you require.

Within the template a number of tags are inserted which will tell the program where to insert the imported articles.

The imported articles are stored as text files on the local hard disk and the article is read in and embedded in to the body of the template. The title of the article can be used as the title and description of the webpage, and the output file would be named similar to the title of the page plus using a .htm as the file extension.

This idea can be extended even further by building directories based on towns or counties around the country, one example of this is http://www.a63.co.uk - a directory of businesses based around the main road the A63 which runs from Hull in the East of England to Leeds in Yorkshire.

4 Files were used to create this file, each file was imported in to write to the template at the a697ppropriate place.

1. Metadata.txt - holds all the meta data information for the webpages
2. Business listings - stores the addresses, phone numbers and category for each business
3. Category Descriptions - Helps build the H1 tags for that particular category
4. Town - Holds the town names

Using these 4 files it is possible to build a pretty unique webpage for that particular category in that town.

There are approximately 140 categories, and 5 towns - adding up to 700 web pages.

Extending the idea further it is possible to build a website with the principle towns in the UK which are approximately 1200 towns, this would give us around 170,000 pages.

The programming language gives massive opportunities for creating multi page websites with ease. It just takes a little time getting the core data sets together.

Simon Gregson is the author of the website http://www.yocc.co.uk and http://www.a63.co.uk

Plumbing Books
Basement Books

0 Comments:

Post a Comment

<< Home