Add Remote Backup Services to your existing business, or start a profitable Internet-based online backup service for a high profit recurring revenue stream.
Click here for more info.

Recent Articles

IBM Polishes SOA Blitz With AJAX
Over the next few months, IBM is launching a massive set of products and services to bolster implementation of service-oriented architecture in businesses that use WebSphere software. Of particular interest to many is the deployment of the new WebSphere Portal using AJAX.

Google Maps The Way To Version 2

The official launch of the Google Maps API Version 2 provides a number of tweaks to enhance its performance and decrease the number of memory leaks that happened in previous versions.

CSS And Tables: The Hype And The Trends
Before tables came along, the web was a pretty dull place. Using tables for layout opened up new vistas of possibilities of visually "designing" a page. It could well be argued that table based layout was responsible for the popularity of the web and the field of web design.

It’s An AJAX World: Hive 7
PHP creator Rasmus Lerdorf works for Yahoo, and now his programming creation is part of Yahoo's I just spent a few minutes talking with Max Skibinsky, founder and main developer behind Hive 7.


04.10.06


Easy Content Management With Server Side Includes

By Ross Johnson

Content Management systems are an invaluable backend aspect of a webpage now-days. I honestly see very few websites that can really say they don't need some sort of Content Management system.

However, not all content management needs are the same. There are plenty of instances where all that needs to be altered is slight text here and there, or details. It doesn't make sense for the company to pay a designer an hourly fee every time they need an update, and it doesn't help you to have to spend half your day working on pointless copy updates.

Here in lies the problem, most content management systems are not designed for small alterations. They are either custom modified code, where customers end up paying for development of features they are not even going to use (ie: the more complex functions they don't need), or you end up paying for an off the shelf package that takes more time and effort to setup and still has more than you ever needed.

What I do to solve this problem is simply use server side includes. Server side includes are basically a line of code in a webpage that says "load this part of the website from this file." This makes it extremely easy to update a section of the website that is just a body of text.

So as you are developing the website, sit down with your clients and ask them which paragraphs they want to be able to edit. This could be news, about us, past projects, etc.

Add Remote Backup Services to your existing business, or start a profitable Internet-based online backup service for a high profit recurring revenue stream. Click here for more info.

Once you have found that out, store the text of each of those paragraphs into a .txt file in a "cms" or similar folder. You can then apply the proper markup around the server side include, and style it properly. For example,

Hello.txt in /public_html/cms

Hello, and welcome to our site!

Then in the index.html

<h1> <!--#include virtual="/cms/hello.txt"--> </h1>

Now all that has to be done to edit the heading, is setting up an FTP account that drops them in the CMS folder, and they can upload the file as needed with the changes.

The drawbacks at this point are that they still have to deal with the hassle of FTP. Don't worry though, in part two I will describe how to make a simple CGI script to deal with that for you like I have done for clients such as Ann Arbor's Hideaway Lane and Kingsley Lane Lofts.

The other drawback is server side includes also do put an increased load on your website, so it will download slightly slower.

The less server side includes on your page, the quicker it will download, and you can try and compensate for the increase in load by using proper code to reduce file size, and proper image optimization.

Stay tuned for parts 2 and 3!

About the Author:
Ross Johnson is co-founder of Ann Arbor Web Design Company, 3.7 Designs.

About DevWebPro India
DevWebPro India is for professional developers ... those who build and manage applications and sophisticated websites. DevWebPro India delivers via news and expert advice New Strategies In Development.

DevWebPro India is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com


-- DevWebPro India is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2006 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


New Strategies In Development DevWebPro India News Archives About Us Feedback DevWebPro India Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact