links
300 Images From 1800 Sites
Punctuated Productivity
ascii table
brainjar.com: css positioning
Catman's Reference Guide to XHTML 1.1
Catman's XHTML 1.1 Elements and Attributes Reference Guide
citeseer
Color Scheme Generator
common errors in english
cool images
Copying music between authorized computers with iTunes for Windows
css layout-o-matic
daypop
del.icio.us
elegant hack
emacs wiki
floatutorial
imho...
keystroke shortcuts for windows xp
mozilla keyboard shortcuts
NameVoyager
perldoc.com
programming language popularity
regular expression tester
selectoracle
short url services
simple urls for search engines
the unix acronym list
yahoo dictionary

permalink

textpattern sections, pages, forms

I’m trying to understand the details of textpattern.

pages – think templates

Textpattern “pages” are poorly named—they are templates. I’m going to call them templates—when you see “template”, think textpattern page.

OFTB, textpattern has the following templates:

template description
default this appears to be the page displayed when you go to the home page. The home page can list pages from multiple sections.
archive this is the default article type. There is a section called article, and the associated template is archive.

One of the key differences between the templates is the stuff that displays the content:

default
<txp:article limit="5" />
archive
<txp:article />

forms – think includes

Forms are chunks of html that can be included into templates, and probably other forms. I guess I would have called these includes.
Template default appears to include form default as its repeating element, as does template archive.

Form comment and form comment_form are used for comments, the latter being the actual comment input form, and the former display of the comment.

sections

Each piece of textual content—let’s call them articles—has a single section associated with it. The section defines:

site organization in that the section name is a folder / directory in your urls. Note, though, that the hiearchy is pretty flat right now, as you cannot nest sections natively. However, I’ve been nesting sections by creating new instances of textpattern in the hierarchy. Clearly I’m going to hell for this.
indirectly presentation since you can associate templates with sections.

Share this article on post this at del.icio.us post this at Digg post this at Reddit

* * *