PDA

View Full Version : Content Management


babita
03-13-2003, 11:01 AM
I need a sort of content management perl script to create a template page for a website. Hope for a prompt response.

Thank you
Babita

mellin
03-13-2003, 01:48 PM
I can't remember my system or it's code right at this moment, but as soon as i get on my own computer, i'll post you one good version. I run it on my own site, with news files that are actually xml type content.

The idea is basically that i have xml files like these (in Finnish..)

<?xml version="1.0" encoding="iso-8859-1" ?>
- <header>
<otsikko>Meinataanko me nyt, vai eikö me meinata?</otsikko>
<author>Mikko</author>
<pvm>5.3.2003 15:40</pvm>
<related>1</related>
<ikoni>quest-ico.gif</ikoni>
<data>
</data>
</header>

and to parse the wanted content out, i use Perl script that makes it valid xhtml 1.1.

Unless anybody else won't help you in the mean time, i'll post my system later. Got to go train now :D

babita
03-14-2003, 05:38 AM
I haven't found any solution yet so I would really appreciate if I could get your system as quickly as possible:)

mellin
03-14-2003, 08:22 AM
Yeah sorry, just came from an job interview, didn't read lot of forums there :D

Anyways i'll post my setup as an email attachment, that ok with you?

What system do you run on? This setup is for Linux, but can easily be customed for others, since it uses *mostly* only one file for settings.

mellin
03-14-2003, 09:51 AM
Read your email.

babita
03-17-2003, 06:18 AM
My actual server environment is of unix type so it will be ok Linux.

Thanks Mellin

mellin
03-17-2003, 12:09 PM
After i gave you the sources, i camed very a shamed of the code. I did some redesigns, now the system allows HTML elements inside the posts, and no encode/decode gum.

I'll make the updated code available soon, so if you wan't to look at it, let me know.

babita
03-17-2003, 05:27 PM
Hi Mellin,

I sure would like to look at the code.
You are doing great job, keep it up!

Thanks
Babita

babita
03-17-2003, 06:14 PM
Hi Mellin,

I sure would like to look at the code.
You are doing great job, keep it up!

Thanks
Babita

mellin
03-17-2003, 10:00 PM
Ok, again read your email.

I made some changes, such as:

- now you can place HTML elements inside XML element "data".
- It's a bit faster (a bit..)
- Deleted some CSS references from scripts, 'cause they were for my system.
- Changed some Finnish text to English, for better readability to non-finnish persons :D

You can use your old "settings.lib", just delete row "$sub_decode_xml = "decode_xml.lib";"