![]() |
|
|
Published: Friday, March 19, 1999 By Bart Silverstein Please note: This article will not go into details about the construction of ASP or HTML pages. For details on the actual code used, please look at the source f iles provided.
Have you wanted to produce an EZine? With dynamic content? I would guess that most of you would have avoided such a project because of the amount of manual work involved in maintaining it on a recurring basis. Well, folks, here is an example of how you could implement one in short order. It also allows for easy maintenance due to several factors. Let's check out the key features of this project:
2) Articles should be stored in the database or read from individual HTML files. Allowing article authors to create and edit the article pages reduces your work. 3) Columns, articles and authors should only be visible when we deem fit. Hiding columns and articles until you decide they should be shown lets you build them when you can, and roll them out when the time is right. 4) All displayed data should be able to be customized with HTML tags. By allowing HTML tags in our stored text, individual items can be adjusted for appearance on demand. I have included both a blank data structure for building your own EZines and a fictitious sample EZine called 'Supermodel Test Drive.'
Setting up the Sample: Now that that's been done, let's have a look at the EZine and talk about the data behind it...
The EZine Home Page: There is actually data from 3 records being displayed. Information about the column and it's graphic, information about the author and their graphic and information about the article and it's graphic. The grayed out picture of the supermodels with inset car clip is made up of these 3 graphics. Because of the way that the graphics for the column and author mesh, the sample EZine can't have mixed authors for any given column. There is nothing in the way the ASP scripts or database has been constructed that would preclude mixing authors for any column. It is possible to include HTML tags in the column name stored in the database, making it possible to have a graphical column name instead of a text one, or to adjust the appearance of the text, without having to modify the EZine template.
The EZine Authors Page:
The EZine Article Page: !--titletext-- This string is replaced with the title text listed in the article information.
You could add more special strings by adding more replace functions in the
Whether you use generate the page directly from the database or retrieve an HTM file, the short biography, link to the authors page, and link to your previous page are automatically included. If the article has been completely generated from the database, then the header graphic and article title are automatically inserted as well.
Adding Other Pages:
Maintaining the EZine: One other thing of note is that once an article has been shown, if it's not hidden it will continue to be displayed on the authors page showing the author as well if necessary, even if the column has been hidden. All of the individual addition/edit pages have field descriptions associated with each one to help you properly determine what data should be entered for each of them. Well folks, that's about all there is to it. Remember that any changes from the format provided in the sample EZine will need to have any necessary script and database structure changes to make it work correctly. Go ahead and have a good time with it! Happy Programming!
The ZIP:
Bart Silverstein has written several great articles for 4GuysFromRolla.com. When he is not writing articles, Bart is often found on the many ASP messageboards, answering questions.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||