Basecamp

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

Technorati Chart for 'development'

Articles Tagged "development":

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.