Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
I'm thinking of writing a CMS for semi-technical folks
2 points by daychilde on Aug 27, 2010 | hide | past | favorite | 8 comments
I'd like to know if you think this would be worth it (i.e. have business potential); if you might use something like this; if something like this already exists and works (and I just don't happen to know about it). I may well write this anyway, as I was initially thinking, for my own benefit anyway; but I'm open to advice on working this towards perhaps my own company...

So here's the idea:

Right now, when I make a website, I'vdde gotten to the point of setting up template pages (shared headers and navigation and other features) with an area for that particular page's content.

My latest experiment, which really works well for small sites, is to stick everything in a single php file and redirect 404 to it and let it figure out what path the visitor wanted and go there (i.e. it detects that you tried to access /aboutus/ and returns the proper page, built from the various parts). Even CSS is called this way, and I properly output the css file to the browser via php...

So I'm thinking of trying to automate this a little bit:

1. Store page contents in a database - but I'd be storing html, with a text interface to work on the files, not a GUI.

2. Have a page navigation structure with automatically generated navigation menus.

3. Allow for multiple page templates

4. Allow for multiple widgets/plugins that I'm currently thinking would be how a template is made. So this could be things like a list of the most recently updated pages to a calendar of events, or... I'm not totally sure yet.

5. Have page/widget/not sure what other level of variables - like for pages, an associated "page title" variable that the page header widget would look for and use somewhere in the graphical header area of the rendered page, as well as put in the html 'head' section so it appears in the browser's titlebar...

I suppose I want to be a little inspired by Wordpress and its concept of pages (as opposed to posts) and its widgets and customizeable sidebar; but try to make it easier to write useful plugins, and make the page templates themselves a part of what's stored in the database.

Does this make sense so far? Am I giving too much info or not enough? And what do you think?



What advantage would your system have over any of the existing CMS systems? There's a dozen of good, well-established CMS systems out there (CMS made simple, Drupal, e107, Joomla!, Typo, Plone, and so on and so forth)...


I've used Plone; I've looked a Drupal, Joomla, and Typo.

In my mind, these systems try to offer a complete GUI development interface. They're complex and difficult to learn.

Basically, I think there's a need for something far simpler.

The first step would be to write something that simply stores the main content portion of each page in a database, loading the correct content during the page building process.

So my page template might look like:

<html> <head><!--stuff--></head>

<body> <div id="header"><h1>Sitename</h1><h2><?=$pagetitle?></h2></div> <div id="content"><?=$pagecontent?></div> <div id="footer"><p>stuff</p></div> </body> </html>

There would be a backend interface to generate new pages and define the variables, like page title; a textbox to work with the page's HTML code... read/write this from/to database.

Complexity could grow from that - but that's the basic idea.

Are you aware of CMS that work from that point of view? Just the sheer simplicity of the system, in my mind, is different.

For example, you can work in HTML mode in Wordpress, but there's all the rest of it that goes with Wordpress that's not needed for a small site - it gets in the way.


Well, I don't think a GUI is more complex than editing nearly the same stuff in a text editor. But that might be just me.

However, if you want to go down to bare-bones stuff, give a try to http://ikiwiki.info/.

Quite a few solutions exist for such scenarios aswell.


Addendum: To some degree, I'm really inspired by WordPress. I think: WordPress makes it really easy to make a functional and useful website; although pages feel like they were a little strapped on; and making new page templates is a little hard; it's geared towards blogs.

So a lot of what WordPress does, I like. But my idea would be geared towards making websites for small local businesses, for example; rather than blogs.


The trend over the past 1-2 years has been to move away from a blog look and feel with Wordpress installs. You can absolutely run small businesses with Wordpress installations and very easily pick a snazzy design up for $50 or so that comes complete with industry-specific pages. I've used http://woothemes.com/ for that sort of stuff - really spotlights how malleable WP can be.


Thanks, I'll give that a looksee.


Have you had a look at NestaCMS? Markdown, textile, or HAML support. Text files as your interface/storage.

http://effectif.com/nesta


I'll check that out, although I haven't played with Ruby at all - I'm a PHP guy. :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: