Go to content Go to navigation Go to search

Using Textpattern

183 days ago by Rich Webster

I’ve been setting up many clients with TextPattern and WordPress, and I’ve decided to make a sort of “users manual” for my clients within this blog. They’ll all be grouped under this address. This is the first such article.

Making Links in an Article, to another Article
There are two kinds of things you can do with a system like TextPattern (Txp):

  1. use dynamic linking, where Txp does the work for you
  2. do stuff just like Txp wasn’t there.

Linking to other TextPattern Content
Unlike old-fashioned web pages, the URL of a Txp web page provides the system — NOT with the location of a file — but with a command that goes to a database and pulls out the content of the page, and sticks it in a Template.

(FYI: It uses PHP to do this)

This kind of link is formatted:

http://www.richoid.com
/index.php?id=14

The blue part is the base information, and once you’re within the site, you can just ignore it (optionally) and just link to the other two parts:

The red part is actually a link to a set of programmatic instructions, which may or may not contain a web page. In TextPattern, it doesn’t, it points to a database, and gives instructions on what to do when it encounters…

The green part, which is an instruction to the server (signified by the ”?”)

In this case, the green part says “get the content stored at “id 14”. This is just the article you’re writing, to which it is referring. The rest of the page is defined by the “Template”. In Txp admin, you can view the template(s) under the “Presentation” tab -> “Pages” tab.

Question: So how do you know that particular page is found by calling ”?id=14”?

Answer: when you create the article, or edit it, you can see that the full address of the “write” tab when you are editing it, is:

http://www.richoid.com/textpattern/index.php?event=article&step=edit&ID=14

If you look at the very end, you see ID=14

There’s really a lot more to how these urls work, but in this case, if you make a standard html link:

<a href="">Link Text Here</a>

and put the address:
index.php?id="XX"
between the quotes like this:


and, finally, replace the XX with your article number, it should always present a standard page, with your particular article in it.

*Final tidbit: *
This probably deserves a longer discussion, but, briefly:

You can show all articles in a particular Category using a similar URL:
<a href="index.php?c="information_architecture"">Link Text Here</a>

You can show all articles in a particular Section using a similar URL:
<a href="index.php?s="About_Larry"">Link Text Here</a>

Use “Categories” to group articles that have related content, onto a single page, or if you want pages with substantially different layouts (in which case use “Sections” which can have different page templates)

BTW, one main advantage of Textpattern over Wordpress is that it is easier to accommodate multiple layouts in a single site. Wordpress requires a bunch of PHP “if” statements (i.e. programming… too complex for casual users) where Txp just lets you make any number of simple Templates, for each layout.

| del.icio.us | | Digg This | | Technorati |

Comment

The most continuously surprising video I've ever seen

252 days ago by Rich Webster

I love this video because each second of it is a smooth transition from one utter surprise to another. Genius. But don’t bother to ask why, because it is so utterly beside the point that, well, maybe that’s the final surprise, right?

Check it out, be patient, and if you only like things that make sense — well, you’re probably on the wrong planet anyway.

| del.icio.us | | Digg This | | Technorati |

Comment

Cory Doctorow on How to Be a Better Blogger

252 days ago by Rich Webster

This is a video which is well worth watching for anyone self-promoting via blogs. I recommend blogs to everyone, and create quite a few for local businesses and individuals. Cory is among the more successful bloggers, and he is part of the team at BoingBoing.com which is one of my favorite blogs.

Anyway, here’s the video.

| del.icio.us | | Digg This | | Technorati |

Comment

Larry Lansburgh's Dream People of the Amazon

345 days ago by Rich Webster

This is partly a test and partly to tell the world about Larry Lansburgh’s Dream People of the Amazon. The trailer is below, and you can buy the DVD at Larry’s Site

| del.icio.us | | Digg This | | Technorati |

Comment

A picture worth 1000 words or a million plastic bottles

365 days ago by Rich Webster

Check out this site...

Chris Jordan’s “Running the Numbers” graphically illustrates consumption in a brilliant, artistic way:

http://www.chrisjordan.com/current_set2.php?id=7

| del.icio.us | | Digg This | | Technorati |

Comment

My Latest Project: NevadaCounty.com

455 days ago by Rich Webster

Check out NevadaCounty.com. I’m working with John O’Dell to build this as a community site.

| del.icio.us | | Digg This | | Technorati |

Comment

Information Architecture + Burning Hardcore Religiosity!

455 days ago by Rich Webster

Check out this fine work of design

It explains the problem with maximum clarity and minimum fuss.

| del.icio.us | | Digg This | | Technorati |

Comment

Nice little way to encode video for the web

475 days ago by Rich Webster

Here’s a couple nice ways to get media on the web:

HeyWatch.com
Imeem.com

| del.icio.us | | Digg This | | Technorati |

Comment

How to Make Lichtenstein-Style Art with Photoshop

475 days ago by Rich Webster

How to Make Lichtenstein-Style Art with Photoshop, here

| del.icio.us | | Digg This | | Technorati |

Comment

Cool Timeline Tool

475 days ago by Rich Webster

I found this cool timeline tool. Thought I’d mention it.

| del.icio.us | | Digg This | | Technorati |

Comment

Previous

This site is hosted by 1and1.com and uses the TextPattern CRM