TextPattern Cheatsheet
Cheatsheet in PNG or PDF of all TXP tags
This is simple Cheatsheet that describes all TXP tags. For ver 4.0.5

PNG 112kB
TXP Bookmarklet
Just plug in your TXP install path and use the Bookmarklet Builder to make yourself a nice little bookmarklet for posting to your TXP. The code below will also take the current page’s title and selected text. There’s a lot more data you can use like putting the current page’s url in a...
XHTML tags in article titles [revised]
How to insert line breaks and style information in article titles without making them visible on the page or in the window title.
In the textpattern forum I found a code snippet that makes it possible to inject XHTML tags into the title field without showing these tags on the page. But I found all my spans and breaks in the window title when viewing an individual article’s page. So, what could I do about it?
Section and Category Pull-down Menus, Part II
In continuation to Mary’s previous article:
Section and Category Pull-down Menus, here is how to have these as simple category selects, provided, you have one article assigned per category
How to transmit arbitrary information with zem_contact
zem_contact is a plugin which extends Textpattern with a set of custom tags supporting email contact forms.
How to transmit arbitrary information with zem_contact introduces some of the inner workings of that plugin, and how to use it for more than just transferring a visitor’s name and address.
Creating Article Popups in Textpattern
Open articles in popup windows
Recently I wanted to open up the article body in an new window. On the page I had set up I exposed the title and the excerpt and then an link to where the article body was opened up in a new window. Below I will briefly cover how I did.
Advanced Sort By
Not happy with article and article_custom's sort by features? Roll your own.
The “sortby” attribute is a direct interface to the database language SQL. That means you have all the sort power in the world.
Allowing XHTML 1.1 Doctype
Way around Textpattern's PHP rendering problem.
Online Plugin Packaging Tool
Online Textpattern Plugin Packaging Tool
Textpattern Source Reference
Quickly find Textpattern functions and definitions
So here’s the first thing that my new site will host. A full blown Textpattern reference.
Change Password Tab

How to make another tab for changing passwords if the user doesn’t have admin access.
Restricting search to one section
Restricting search to one section
Link Template 2 File
Import/Export Templates, Forms and CSS.
A simple export script that iterates through your forms, templates and css and exports them to a folder. The second script updates the database with the exported files.
How to Speed Up Your Textpattern Web Site
How to Speed Up Your Textpattern Web Site
Have you noticed your installation of Dean Allen’s Textpattern to be serving up pages a little slower than expected? Puzzled by those ridiculously long render times? Here’s 4 helpful tips to get your site moving.
Disable logging for your home IP.
I got sick of seeing my home IP address in the logs (usually more of them than anything else). Changed a couple of lines in textpattern/publish/log.php and now my logs almost never change.
txp:output_form = includes
One of the obvious benefits of Textpattern is it's ease of use and the control it offers over various parts of a site... without the aid of an FTP SFTP program. Some would argue that once Textpattern is installed and running there would be NO need for anything other than the TxP control panel. It really doesn't matter, the point is allot of...
Image Replacement without plugins
How to use native tags to replace text with images
<div class="<txp:section />"><h2><txp:section /></h2></div>
This is really simple but read on for more info.
Articles Sorted By Custom Fields
Stuff like Last Name
Hiding and customizing the comments form and system
Hiding the comments form and customizing the comments in general
This is the documentation of a few of the steps I took to achieve a customized comments system..
i had stated in the forum that i would like to be able to:
have the comments show only when you click on ‘comments’, rather than having the comments and commentform (particularly) shown fully when on a single_article page.
so here’s how i successfully managed this on mine…
btx_bookmarklets
Bookmarklets for a "Blog This" feature
article vs. article_custom
difference between txp:article and txp:article_custom
<txp:article /> is NOT the same as <txp:article_custom />
They cannot be interchanged. This is perhaps one of the most common confusions for Textpatterners.
External Javascript In TXP
It’s possible to use the CSS database in Textpattern to store external javascript so that it doesn’t have to be embedded in the page template.
txp_plugin_template
Txp Plugin Template for Developers
Style-switcher (non-plugin)
Style-switcher script, independent of Textpattern code
A nice little style-switcher script that can work independently of Textpattern, and can be set up with very little fuss.
Section and Category Pull-down Menus
Create article pull-down menus, by section or category.
Creating a pull-down menu (also known as a “jump” or “select” or popup menu) of articles is very simple. What follows uses JavaScript to power it, but can be changed to use another programming language if desired.
In “jump-menu”, an article form:
<option value="<txp:permlink...
Display Section Title
The original contents of this tip are outdated, and no longer necessary. See the section tag reference in the Textpattern manual.
Using Phplist for a newsletter in Textpattern
Here are the steps involved for including the Phplist newsletter in your textpattern site.
Pagination
61 articles

