View Full Version : looking for language to enable "contents managment"

07-25-2005, 05:42 PM
So I'm looking for a web-coding language that allows editing in this kind of way:
On the homepage the contents is loaded from a text-file which has a build somewhat like this:
#HEADER = "..."
#TEXT= "..."
#IMG= "..."
whereas there would have to be some kind of 'if' fuction to check if an image has been specified, so that either a standard or no image is displayed.
the header and text would have certain preset formatting
Also it would be good if manual text formating would be available, but just simple things like bold, underline, italic, line break, maybe even a highlight colour. font size, type etc would remain the same at all times.

I'm probably going to be using php for my nav/header/footer. meaning that there will be external files for them which will be parsed together into one.

I would just simply use a html-file and parse it aswell with php, their is one problem though, the person that will be editing in future wouldn't understand, he needs a simple .txt edit.

If someone could point me in the right direction for which language to use and which part of the language to look at that would be great. Also if there is maybe even a better way to parse the html files than with php.


07-26-2005, 04:14 PM
Which language you use doesn't matter that much, as long as you select one with sufficient capabilities; PHP sure fulfills this requirement.

Instead of building something yourself, wouldn't it be easier to apply an exisiting CMS package? There are packages that feature user administration and text formatting out-of-the-box; it would save you a lot of hard graft, unless getting to grips with what a CMS is all about is the object of this exercise.

07-26-2005, 04:49 PM
I don't really want to use a CMS because the reality is, most of them are just bloated. The guy that is going to be adding the latest news and updates to the site is a moron, he has trouble using Word or PowerPoint. That's why I need something simple like this, which he can easily edit in Notepad. That way he'll easily be able to update without too much brain exercise.

If I can do this with PHP, what should I specifically look at, or could you give me some kind of pre-made php-script that I can modify?

Thanks for the reply.