2008-03-27T12:31:44+00:00 Added custom fields to the table

A couple of years ago I was forced to move to Textpattern by a smooth move on my part in accidentally deleting the database for my Wordpress-powered blog. I had 20+ databases going at the time and since most of them were auto-installs by Fantastico, there wasn’t a clear naming convention, so I deleted the wrong one and lost my entire blog.

Technically I didn’t have to move to Textpattern, but I had been saying I wanted to for months and just kept putting it off. This was a do or die kind of thing. It was 9pm or so and I knew it would be a good time to do this, so my goal was to get my site back up and running by morning… and I did!

Of course, it wasn’t easy. Textpattern runs things very differently from Wordpress and in fact, I wouldn’t recommend someone switching from WP to TXP unless they have lots of time and patience to deal with those changes. I’ve been meaning to write this post for some time, since my original post on the subject is way out-dated now.

At the time I had only been using TXP for a few weeks, and it was two years ago, so not only were some things unfair at the time, they’re in many cases irrelevant today because things have changed on both systems, and in my own blogging/designing workflow.

The Comparison

Keep in mind, this is all from the perspective of a front end designer and not a technical person who knows about the inner workings of the code. I have no authority to talk about the details of how the systems are run on the back end; and, this is all in relation to my personal experience and not a professional recommendation one way or the other.

Textpattern is a strong and dependable guy friend I can call to lift something heavy for me, even though he doesn’t always understand me. Wordpress is my gal pal I can do everthing with; she gets me, but she’s a little flaky sometimes.

First and foremost…

The primary difference I’ve seen between Wordpress and Textpattern is that TXP houses all of its code in the database, whereas WP contains everything in hard files. I’m sure there are various benefits and pitfalls to either method, but for me personally I found great benefit in having the physical files, for a few reasons:

  1. The main hardship for me with TXP was the CSS being in the database. I couldn’t use Textmate to edit my CSS anymore, not to mention all the rest of the code.
  2. With WP when my database was deleted, I still had all my layout and design in hard files so I didn’t lose the site design.

So this is ultimately what drove me back to Wordpress after two years with Textpattern. UPDATE: See Hacking Textpattern to use raw files for the design for a solution to this.

Nit-picking the details

These aren’t all important things, just a few details I’ve noticed. Whichever is best for you is for you to decide. Note that nothing I mention here involves plugins at all. A lot may be possible with either platform with the use of plugins, but I’ve tried to show basic things that can be done out of the box.

Wordpress vs. Textpattern
Wordpress Textpattern
Templates hard physical (PHP) files on the server, manageable with FTP everything is in the database, within fields in the admin area
Images limited image support, from within posts Set up just like articles, plus thumbnail size and other details can all be specified in admin
Files No file support within WP without a plugin* As images and articles, plus stats
Plugins there seems to be more plugins available for WP and they’re easier to install TXP has a growing set of plugins as well, plus, there’s a “help” page for each plugin in the admin area
Template Code Support Codex searching is difficult but support forums are a wealth of information. (tip: search Google for “codex.wordpress.org …”) I’ve found the forums difficult, but the wiki is easy to navigate, plus TXP has built in code support within the admin area of your site. You choose from some options and it outputs the tag you need.
Pages & Posts Two sections: Posts or Pages, not interchangeable, unlimited hierarchy, specifying “parent page”. Unlimited sections, each using the same type of “page” so all pages, posts, articles, etc. are all interchangeable, no hierarchy.
Customizing the Admin Area Easier to customize because the code is more “standards-friendly”, and there are admin themes available as well. Table-based back end makes customization difficult, but there is a plugin I know of that helps some.
Custom Feeds One thing I definitely miss here… omitting a section from the feed In TXP you can “push a button” and turn off a section from reaching the main feed.
Import & Export WP has definitely improved this since ‘06. Plus, they’ve added an export option. I’ve not had any difficulty with this yet.** I haven’t had to do any import or export with TXP in a long time, but as far as I can tell, it’s the same as before (very basic).
Users Lots more you can do with users, including profile pages, author rss feeds, and more. Basic users with login info and permissions, some author-specific settings.*
Links More information can be attributed to links (XFN, etc) but I’ve never used it. Minimal customization of link list output. More customization of link list output (you aren’t limited to <ul> and you can use only the link data you want to use, wrapped in any html tag you like
Text Editing WYSIWYG, HTML (rich text editor mangles your html output a bit)* Textile, HTML (textile isn’t as nice as Markdown, but better than html)*
Organization Unlimited categories assignable to posts and links, none to pages Two assignable categories* for posts and pages, one for images, files, and links
Comments & Trackbacks No preview*, trackbacks standard, comes with Akismet for blocking spam. No trackbacks*, preview standard, admin option to turn off comments after X weeks, built in spam blocker.
Custom Fields Unlimited custom fields, requires PHP experience to use them beyond the wordpress model (automatically outputs as a list of fields, can’t use them separately or conditionally) 10 custom fields*, better template tags for custom fields with the ability to use them anywhere, anyhow, conditionally, etc.

* A lot of things can be done with a plugin, so before you write off either platform, look into the option of adding a plugin for what you want to do.

** I have run into an issue where WP changes the password of all the users, locking me out of the system before the import finishes. This may be an older version of WP that does this, but when it happens, the password is just “password”. You can log in and finish, OR… what I do is this: before getting to that step (I think it’s step 2), just after the first step, I go up to the address bar and change the 1 to 3 to bypass step 2 where it changes the password.

There’s more…

I’m sure there’s more, and I may get to it later and add it to the list. And of course, if you know of some major differences in the two CMS’ please share.

I’ve heard of a lot of people moving away from Wordpress these days for various reasons, moving to Expression Engine and Moveable Type as well, so if you have thoughts on specifically what makes those better, I’d love to hear it. I’m always curious about–and fascinated by–various ways code can arrange/rearrange information on the web!

In regards to plugins

I’m not against plugins, but as a bit of a control freak, I don’t like to put code on my site that I didn’t write when possible. Although most plugin developers are not malicious, it makes me feel better to do things without a plugin whenever I can.

However, I do have a few that I use a lot and I’ll be posting my list of favorite TXP and WP plugins very soon, so if you have some I should check out, particularly in regards to making WP and TXP more comparable, let me know!