05401, 05403, 05446, 05462, 05482, 05673, 05701, 37signals, aardman animations, ac propulsion, adium, ads, aim, airport, al franken, apple, applescript, article id, asterisk, at&t, atom, automobile, away message, backpack, badge, basecamp, bash, bernie sanders, bicycling, billboard, blacklisting, blog, blogroll, blogzot, bluetooth, blunt, book, bot-net, brad bird, btv, bug, build, bungie, bunny, burlington, camping, can-spam, cars, centralized, channel camp, classic, classic mac workshop, cms, collection, color classic, comedy, comedy central, concert, conversion, cookbook, corrosion, crashing, creature comforts, criticism, daring fireball, darwin, dashboard, dcl, derbi, design, development, digg, dilemma, discussion, disney, download, drivers, dynetk, e-mail, e3, easter, ebox, eckhart, eckhart koppen, eddie izzard, edward gorey, einstein, electric motorcycle, electric motorsport, electric vehicle, electronics research laboratory, elmo, emate, emulator, environment, environmental impact, erin mckeown, escale, exploit, express 530t, expressionengine, feature, feed, feedburner, filtering, finance, firmware, flynn center, font, ford, for sale, free, freeverse, freezing, front row, games, gears of war, gmail, google, gpr, grant hutchinson, graylisting, halo, hayao miyazaki, higher ground, highrise, hiking, hiroshi noguchi, hotspot, hulu, humor, hybrid, hybrid technologies, intel, iphone, ipod touch, isao takahata, itunes, jabber, javascript, jetblue, jfk, jon stewart, kid koala, launchd, layover, leopard, liberal, long trail, mac, macbook pro, macworld, maczot, mail, makkintosshu, marathon, marketing, matthias melcher, media, mesagepad, messagepad, microbus, microsoft, mobileme, money, monitoring, moon river, motorola, movie, movies, mrtg, music, mwsf07, mystic, nascar, ncx, nda, newton, newton press, newtontalk, newton x press, nick park, npr, openpbx, open source, operation ivy, optimization, osheaga, osx, os x, owc, paul guyot, pbx, pdf, pico card, pixar, plist, plug-in, pod jungle, politics, psp, pump-and-dump, quicksilver, racism, rack-n-roll, ratatouille, rebooting, recycling, required reading, restoration, review, roadster, room without a window, rss, scion, screencast, script, security, server, sesame street, seven days, shame, shoppinging cart, simon bell, small dog electronics, snow leopard, social, software, solution, spam, spam haus, startup item, statistics, status, stefano paris, stephen colbert, steven colbert, steven frank, studio ghibli, subethaedit, subversion, sync, syndication, sysmon, tablet, tags, tax, technorati, tesla, tesla motors, textpattern, the colbert report, the daily show, the flaming lips, the gashleycrumb tinies, times argus, titles, todd kollins, tom gage, travel, trends, troubleshooting, twitter, typography, tzero, unicel, unna, update, upgrade, url title, user interface, v710, venue, verizon wireless, vermont, victor rehorst, volkswagen, volvo 122, vpr, vw, wait wait don't tell me, wall-e, wallace & gromit, wavelan, web, web 2.0, web site, whitepaper, wifi, wwdc, wwnc, xbox 360, xbox live, ze frank, zero emission
Articles Tagged "plug-in":
Truist Moves to Rainskit.com ¬
2008-07-10
Nathan Arthur, developer of the excellent tru_tags and tru_podcast Textpattern plug-ins, moves from truist.com to rainskit.com:
See, you have to type R-A-I-N-S-K-I-T now instead of T-R-U-I-S-T. I keep getting that all wrong. I’m sure I’ll get used to it eventually.
Effective yesterday, so I’ll have to try to remember from now on.
Introducing the mta_sanitize Textpattern Plug-in ¬
2008-06-30
I was running into a small issue on a project that I’ve been developing with the Textpattern CMS: I couldn’t find a tag to convert a title to a “URL-only title” like the Write tab on the admin side does for you. Textpattern has a built-in function named sanitizeForUrl() which provides this functionality, but no way to get that from the template system.
After looking for a tag that does this, I quickly whipped up a new plug-in: mta_sanitize.
When would you likely use this? Usually to assist in building links.
In my case, I needed to build a link in the form of “http://domain.tld/section/persons-name/” where the person’s name (first & last; properly capitalized) was stored in a custom field. The person’s name would be shown in one article, but needed to link to another article with more details.
I could’ve provided a link to the person’s detail article, but then I would’ve had to find a unique way to look up the article’s title using only the URL, title, or ID. I felt it’d be more flexible to store the name in a human readable format which wouldn’t require additional database lookups to display and so that left converting the name to a URL-friendly format. What better way than to use the same method that Textpattern already uses to convert titles to URL-friendly format?
With mta_sanitize installed, here’s an example of how I would build a link to a person’s detail article:
<a href="<txp:site_url />/section/<txp:mta_sanitize><txp:custom_field name="Person" /></txp:mta_sanitize>/"><txp:custom_field name="Person" /></a>
Which would result in the following HTML (assuming the “Person” custom field were populated with “John Doe”):
<a href="domain.tld/section/john-doe/">John Doe</a>
Hopefully others will find this useful. If you have any questions, comments, or feature requests, please drop me a line.
Another mta_digg_it Textpattern Plug-in Release ¬
2008-05-18
Another year, another mta_digg_it Textpattern plug-in update. This time, version 0.3:
mta_digg_it-0.3.txt (see full info)
This release brings some minor updates to the documentation, the compact attribute’s functionality has been moved to the more flexible skin attribute (you can now use either full size, compact, or icon sizes), and you can optionally use the article’s excerpt as the content of the bodytext attribute.
Drop me a line if you have any questions, comments, or bug reports.
Textpattern Upgraded... Finally ¬
2007-04-19
It’s been exactly six months and a day since Textpattern 4.0.4 was released. I don’t know what took me so long, but I finally upgraded my installation this morning and it was perfectly smoothly, as always1.
In the process, I’ve started upgrading some of my installed plug-ins to those that support, and take full advantage of, Textpattern 4.0.4. I especially like that tru_tags has, “Added some fancy javascript tricks and UI enhancements to make admin-side tagging easier.” Way cool!
I look forward to taking advantage of some of the new plug-in functionality and using some of the other great new plug-ins that have been cropping up recently. You’ll probably see some new features popping up around here soon.
On a related note, I have also now personally qualified both mta_article_id and mta_digg_it for Textpattern 4.0.4 (although I already knew they worked).
1 The Textpattern team does an especially good job with keeping major upgrades seamless.
mta_digg_it Textpattern Plug-in Update ¬
2007-04-16
I’ve updated my mta_digg_it Textpattern plug-in to v0.2 today.
This version includes the following fixes:
- Correctly escapes apostrophes, quotes, backslashes, etc., when used in the
titleorbodytextattributes (pulled from the article title by default). - Prevents cross-pollination of variables when multiple “Digg This” buttons appear on a single page.
The latest version and full description can always be found on the development page or you can download it directly:
As always, please let me know if you have any questions, comments, or bug reports.
mta_digg_it "Digg This" Plug-in for Textpattern ¬
2007-02-20
I happened across the fact that Digg has implemented new ‘smart’ digg buttons on the 6th. The biggest new feature here is that you no longer have to first ‘submit’ an article to get its “digg url” to use with the “Digg This” buttons and can now just reference the article’s permalink instead.
With that, it means you no longer have to manually submit articles to Digg, copy the digg URL into a custom field in Textpattern, and have the “Digg This” button pull the URL from said custom field (or, worst case, paste the JavaScript into each and every article manually).
With this in mind, I decided it was finally feasible to write a plug-in to do this (I almost did it for the digg-url-in-a-custom-field solution). So, here’s version 0.1 of mta_digg_it: mta_digg_it-0.1.txt (full description here).
Please send in your comments, suggestions, and bug reports.
Update: Sorry about the broken link, it should be fixed now.
Update #2: Version 0.2 is now available.
My mta_article_id Textpattern Plug-in ¬
2006-12-12
I wrote a quick Textpattern plug-in today to spit back a “URL title” for an article ID instead of the numerical “ID” that <txp:article_id /> does and called it mta_article_id. Basically it’s intended to be a replacement of article_id.
I needed it to be able to implement human-readable anchors for articles in sections (for example the autobiograpy and colophon parts of this site’s about section) that aren’t sections that one would really “browse” (so no permalinks), but are mainly fake static pages. In fact, I had intended to have this functionality before I posted my holiday wish list, but I couldn’t find a way to extract just the “URL title” that appears at the end of a Textpattern “Clean URL” permalink (atleast not without writing some custom PHP code).
I asked around on the Textpattern support forum and one kind soul pointed me to this post by one of the moderators describing exactly what I needed.
So, I downloaded the Textpattern plug-in template (see Anatomy of a Textpattern Plug-in for more details on Textpattern plug-in development), and merged the moderator’s code (basically a one-liner) with that of the implementation of the built-in article_id in taghandlers.php (another one-liner), and—Voilà!—my first Textpattern plug-in.
Of course, I discovered that there’s now an <article_url_title /> tag as of Textpattern 4.0.5, but I’m still running 4.0.3. So, my plug-in was depricated before it was released, but the mention of article_url_title only appeared on December 1st, right in the middle of when I was first working on getting “URL titles”, so I guess it’s excusable.
Regardless, you can download mta_article_id from the development section if you like.
Update: It turns out I had overestimated which version Textpattern is currently at. It’s currently only at version 4.0.4, so although version 4.0.5 will include the article_url_title tag my plug-in is still needed in the meantime.

