16/04/05

Comments 35

Textpattern Notes 5 - Release Candidate 3

When RC3 came out a few months ago, I decided to hold off before I implemented it here. I knew it wouldn’t be straightforward to upgrade this time, as I have so many little hacks here and there, and several older plugins might cause problems. The final version v1 was supposedly only a week or so away, but of course that week has turned into months.

So spurred on by how easy it was to update Pimp My Safari to RC3, I finally decided to bite the bullet and upgrade sooner. RC1 to RC3 was a bit of a leap, but I imagine it’ll be a little smoother from here on.

These were the things that attracted me to upgrading:

  • File uploads – I can upload and categorise downloadables through the interface (in the same way as images), which wlll also keep track of the number of times its been grabbed. Superb.
  • No more placeholder files for sections – My root directory is now super clean and thats how I like it. (Its one of the things that irks me about Wordpress – having so many damn files in the root). This also means that adding new sections is even easier – all done via the interface. This makes it ideal for clients too. No more fiddling with .htaccess files.
  • Even less crufty URLS – No more ids in the URL, you can have dates, or just section/title as I have plumped for.
  • There is now an admin preference for whether comments are displayed in an ordered list or not. This was something I previously hacked to achieve, but now that it can be turned off easily, all the <div> styling goes into the comments form instead. Much easier! You can also put the php code into your page template and comment form to enable comment numbers and alternate row styling. Add the setup variables section to the page template (anywhere in the template above the <txp:article> tag)...
    <?
    // set up div class and numbering
    $class=odd;
    $cno=1;
    ?>
    ... and the code where the variables are changed to the bottom of the comment form…
    <?
    // change the values
    $cno=$cno+1;
    if("odd" == $class) {
    $class="even";
                }
    else {
    $class="odd";
                }
    ?>
    ...that way the initial values are set up, but will increment everytime TXP loops the comment form to display another comment.
  • admin plugins! This lets people like Rob Sable create wonderful admin enhancing plugins like QuikPik and Textarea Resizing.
  • Plenty of bug fixes, such as the one that really annoyed me, textile not working properly in excerpts.

There are also some features I haven’t delved into yet, such as sticky articles and the diagnostics panel, but lets hear it for these two new-for-RC3 stellar plugins:

glx_gravatar – Finally, no more hacking, a simple plugin to display Gravatars and show a default icon if the commenter doesn’t have a gravatar yet.

sgb_url_handler – This expands the new clean URL options by including elements such as catgegories! Now I can have /about/colophon/ rather than /about/?c=colophon! It also redirects other urls. So if you’ve used /blog/345/how-to-eat-cheese in the past, and you’ve changed your clean urls to be just /blog/how-to-eat-cheese, it still lets older URLS work! Superb!

Its not without a few problems of course. The low_nav plugin no longer works (this created back/next links within a category, as used in the portfolio), and I haven’t got around to re-hacking the commenting system to avoid the preview-before-submitting scenario. As such, I haven’t re-introduced live previews yet.

To summarise – RC3 is worth it, especially if you don’t rely on a lot of plugins or hacks. Textpattern is growing up, and becoming a fast and powerful CMS suitable to offer to clients, as well as blog use. There is another on the horizon that I’m keeping a keen eye on (I’m looking at you Symphony), but for me, there’s still nothing that beats Textpattern.

(Final wee note – I’ve also taken the opportunity to re-organise a little. Browser news is now found on the Browser Resources page, although the feed URL stays the same.)

Technorati TagsTags:

Comments | RSS

Comments are now closed, but you can still have a jolly time reading what others have left:

#1

Martin Smith said 1275 days ago:

I have begun a client build using RC3 but i’m holding off a little longer for Martagnan.

I admit to guiltily gazing at Symphony lately… but its so beautiful!
#2

Dave Foy said 1275 days ago:

Although I still use TXP for client jobs, I’m with Colly all the way with Expression Engine. I’ve used it on 2 projects now and the power and flexibility of it is nothing short of phenomenal. £100 more than TXP, admittedly, but in my opinion very much worth it if budgets allow. Having the ability to totally custom design the input/admin page for each individual section just blow me away.

Good work with RC3 though Jon, judging by this write up I’ll be going with it for a project next, mostly cos of the ability to have file uploads, something I’ve been pestering on the TXP forums about for some time! Can’t wait for v1.0 proper either!
#3

Sebastian Schmieg said 1275 days ago:

Interesting. When I set up my website I wanted to use TxP initially but couldn’t make it running on my local machine (still don’t know why), so I went for WP (heavily hacked 1.2 install). However I’m still toying with the idea of switching to TxP.

As for your code, you could even beautify/simpify it a bit:

// change the values
$cno++;
(“odd” == $class)?$ class=”even” : $class=”odd”;

Well, it’s a question of personal preferences.

[Edit] Personal details are gone after previewing and the textarea’s fontsize is huuuge.
#4

Matthew Pennell said 1275 days ago:

I’ve got RC3 lined up for deployment on my two rebooted sites in a few weeks – it definitely feels like a more robust system than the one I’m using live at the moment (1.19, I think), although I haven’t experimented much with plugins and the like.

The major HUGE problem I’ve had is getting clean URLs to work offline – my install of Apache just doesn’t grok .htaccess for some reason, so there’s a lot of guesswork involved until I go live; but even though I briefly flirted with Wordpress and Movable Type I’m sticking with Textpattern – it just feels like it’s the one that really will end up going places…
#5

Brian said 1275 days ago:

Jon,

There are also plugins for comments (made by compooter ) that “automagically� do the alternating style thing, and probably event the “I’m the author of this blog� thing.

That makes even less hacks to Textpattern, and I think someone out there is working on a live preview plugin!
#6

Sebastian Schmieg said 1275 days ago:

If only comments would be editable…

Of course you can skip the $class = “odd” as this is redundant.
#7

Jon Hicks said 1275 days ago:

Sorry about the no-saving details problem. This wouldn’t have reared its head earlier, as you didn’t have to preview first before submitting.

The cause is coding your comment form. If you use the standard txp tags, it doesn’t do that. I’ve reverted to txp tags, and added hacks to make labels and ids for form elements.

There is a plugin for doing the comments alternate styling, but as the code is added to the page template, rather than changing txp files, I don’t consider it a hack. Also, I wanted comment numbers!
#8

Eric said 1275 days ago:

Compooter has also a plugin for commentnumbers: see there
#9

Andrew said 1275 days ago:

(“odd” $class)?$ class=&rdquo;even&rdquo; : $class=&rdquo;odd&rdquo;;

Could be

$class= ("odd" $class) ? “even” : “odd”;
#10

Jon Hicks said 1275 days ago:

Excellent- thanks, I hadn’t seen both of Compooters plugins! Thats those installed…

Oh yes, apologies for my php coding – its not the cleanest
#11

Andrea said 1275 days ago:

I used your live preview hacks on an RC3 redesign I’m launching tomorrow, and they still work fine, FYI. Line numbers are a bit different, but other than that your tutorial still worked great.

Like you said, it’s easy to remove the < ol >s now, so no need to do that in comments.php, and I used the ajw_ plugins for alternating classes and comment numbering.
#12

Neil said 1275 days ago:

Geez, man, how the heck did you get the Saft and Stand updates up so quickly?
#13

tom said 1275 days ago:

txp is still a txp. :P
#14

Chris McElligott said 1275 days ago:

I can’t stand Wordpress’ messiness either, like yourself I like my Root directory clean as possible. Even though the files are named wp-name its still annoys me.

I might look into making the switch.
#15

riff said 1275 days ago:

I’ve been using RC3 for a while now and though my site’s laid out pretty simple, I can’t get enough of it.

I’ve no idea how I had lived with MT and WP.
#16

Stefan said 1274 days ago:

I tested RC3 on my local server for a while, because I was unsure if to choose TXP or WP. TXP is now my favourite, it’s easy, clean and powerful. In WP I didn’t like the new “theme-feature”, but on the other hand, URLs are quite nice handled. In TXP you have to choose whether use section/title, date, category… Mixture isn’t possible. With title or category/title, same titles on posts cause an error (you can’t access the older article).
#17

Hunter Chorey said 1274 days ago:

Very nice, Jon. :)
#18

Chris J. Davis said 1274 days ago:

Ummm, for all of the people on here complaining about the “messiness” of your root when running WP, you know you can throw all your WP files in a folder, say called BLOG, while still having your site run out of root.

That is what the two address fields in General Options are for. It pays to do some research, or ask for some help before writing something off.

Oh and Jon, wonderful article. I dig TXP as well.
#19

Jon Hicks said 1274 days ago:

Woah Chris, thats a wee bit harsh.

I tried that solution out a while ago, but I seem to remember that I couldn’t then run other sections outside of the directory – i.e everything started with /blog/, such as /blog/portfolio. Maybe I’m wrong?
#20

Chris J. Davis said 1274 days ago:

Hey Jon,

Sorry if it came out sounding that way, I am a bit touchy today apparently, my apologies.

I believe that if handled correctly everything could be run that way, I am assuming the magic would be accomplished with mod_rewrite so that you could navigate to /about/ and fetch content out of /blog/about/.

Again my apologies that I came of snarky Jon, I have been dealing with a lot of lazy, and sometimes uninformed users of late. Must have gotten farther under my skin than I realized!
#21

Erik Kallevig said 1274 days ago:

Does anyone know if it’s possible to upgrade to rc3 if you don’t know what svn is or how to access it? Or is there a “svn for dummies” guide out there somewhere? I would appreciate it, b/c I found the “out of the box” install procedure for rc1 easy enough, but I feel like I’ve fallen totally out of the loop when people start talking about svn like it’s something we use everyday….since I had never heard of it.
#22

Kevin Francis said 1274 days ago:

Well, any WebDAV client pointed at svn.textpattern.com/current will work :)
#23

Michele said 1273 days ago:

Darn! When I read your forum post about the plugins list plugin I was sooo hoping that you got one of mine in here! ;)
#24

Nathan said 1273 days ago:

For me, Symphony seems like a beautiful prospect, in that it is alot easier on the eyes than the Textpattern yellow. However, it seems somewhat lacking in features. Having played with the demo a bit, I’m disappointed that there’s nothing comparable to Textile built-in. Sure, it gives you your H1 and P tags, etc. but when developing for a non HTML-savvy client, it’s so much easier to teach them Textile than explaining that they need to close every tag. :)
#25

Jon Hicks said 1273 days ago:

Nathan – textile option is there, its under each of the authors preferences, but I agree, a little lacking compared to TXP at the moment.
#26

nick santilli said 1273 days ago:

why can’t I get RC3? textpattern’s website only lists rc1 as the current. (from sept 04).

Did I miss something here? do I need to know the secret handshake?
#27

nick santilli said 1273 days ago:

nevermind. went to the forums – haven’t visited in a while…
#28

funtoosh said 1273 days ago:

well of course everybody should check michele’s wysiwyg-plugin for RC3 ;-)
http://micampe.it/2005/03/28/textpattern-wysiwyg-editor
for clients, it s often essential to offer an interface they are familar with …
#29

Anna said 1273 days ago:

Just stopped by to check out your site :-) really cool! Now this I dont mind voting for! ;-)
#30

Tim Callahan said 1272 days ago:

rc3 owns rc1-2
#31

Daniel said 1271 days ago:

I love your site, your style is a real inspiration and makes it even harder to design a real good and new designed site.
#32

Alex said 1268 days ago:

Great “notes”. I just got TP and am starting to implement it into my own site. Glad to have your notes to help guide me to do even more hacking/tweaking beyond the typical TP standard. Thanks!
#33

Robhert said 1260 days ago:

Interesting article, and a useful site… thank dude!
#34

Dan Mall said 1259 days ago:

I just read and implemented all of your hacks this weekend, then I find out that there’s a new RC . . . ! Anyway, thanks for the update; your site has been invaluable to launching my own. Thanks!
#35

Matt said 1259 days ago:

Just to clarify Chris’ point above, pages you create don’t need to be in the /whatever/ subdirectory if that’s where your WP files are. WordPress doesn’t care where you stick it in that regard. I just got annoyed at everything in my root and moved the WP files to /blog, but as you can see on photomatt.net none of the pages or permalinks or anything else changed. All WP really needs is to be able to write the .htaccess in the root directory, which on a fine host like TextDrive is never a problem.

love

Brit Pack: A proud member I love Omniweb Coda Segment Publishing I buy my type from Veer The Forgiveness Project