The Quandary of the Single Table Web Site

By Deane Barker 10 min read
Author Description

Many smaller projects need a single table of managed data in an otherwise static website. What’s the best way to handle these situations?

AI Summary

This post explores the complexities and challenges of single-table websites, discussing the implications for design and user experience. The author delves into the balance between simplicity and functionality, offering insights on how to effectively manage content and navigation within such frameworks.

What do you do with sites that need a single table of data updated? These are sites which are totally static, except for this one thing…

For instance, we have a client for which we built a static site. But they have a page which lists all the locations where you can buy their stuff. This list changes a lot. They don’t want to keep calling (and paying) us to update this, so they want an interface where they can manage the list themselves. The list couldn’t be more simple – if you implement in SQL, it’s a flat, five-column database table.

This happens a lot – the sites are all static except for one element, be it a list of locations, events, the ubiquitous “Latest News,” etc.

Some common themes

  1. The table is self-contained – it has no foreign keys to any other table (indeed, it’s the only table in the database). It is an island of data unto itself.

  2. The “objects” often extend past the “page” or “post” model (more fields are needed), so this precludes using a blogging system.

  3. You can do the display logic in some other manner. All you need is a way for the users to administer the data.

  4. Access is binary. One password gives the bearer access to the whole thing.

So what do you do? The idea is to do something as simple and fast as possible, with as little repetitive coding as you can get away with.

So, how do you handle it?

Links to this – Half-Assed Content Management August 15, 2008
Some content management situations don't require a full-blown CMS. Rather, they required "content-oriented" management of data, which integrates into a larger system.
Links from this – Rails Blurs the Lines August 2, 2005
I’ve been working with Rails for a few weeks now and it’s making “install” vs. “build” decisions much harder – (We interrupt this post to get two things out of the way: Yes, Rails is as good as everyone is saying. And yes, that pisses me off too. I worked so hard at becoming a PHP ninja that I’m...