Hi all,

I've been writing CMS's for years now, and at the moment, I find myself looking for some breakthrough, or at the very least, a change in the way I do things.

Anyone can write a CMS to manage simple articles with a data structure like:

id
author
date_written
heading
body
keywords
description
publish_date
expires_date

But, it still requires the writer to know a little mark-up (p,b,h1,h2,i,a,img,etc) in order to create an article with multiple paragraphs, sections, headings, images, etc, with well structured, valid mark-up.


So, I've started thinking about how this can be tackled.



Idea #1 was to have an unlimited number of 'blocks' or 'objects' *related* to an article, resulting in two tables:


ARTICLE
id, author, date, title, keywords, desc, etc

BLOCKS
id, articleid, heading, content, order, etc


But the reality is that different types of pages will require different types of blocks (some with headings, some with images, some with captions, etc). On the surface, this seems either too big to tackle, or too complex to expect the writer/contributor to grasp.



I'd be really interested in hearing how any one else is tackling this stuff, even if it is only remotely related to PHP.



Justin




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to