atb_editarea

Add a useful code editor to Textpattern's Presentation tabs

Jun 15, 04:29 PM

The atb_editarea plugin simply takes Christophe Dolivet’s EditArea, a free javascript editor for source code, and uses it to enhance the textareas inside your Textpattern admin area’s Presentation tab.

You can also follow this on GitHub.

Download: atb_editarea-0.9.zip

atb_if_form

Conditional tags for Textpattern forms.

May 31, 01:48 PM

Lately, I’ve been writing Textpattern pages for relatively complex sites that do things like this:

<txp:if_section name="widgets,sprockets,thingies">
    <txp:hide>The widgets, sprockets, and thingies sections have their own special layouts.</txp:hide>
    <txp:output_form form='content-<txp:section />' />
<txp:else />
    <txp:hide>All the other sections look pretty much the same.</txp:hide>
    <txp:output_form form='content-default' />
</txp:if_section>

This plugin is designed to simplify this somewhat, and eliminate that list of section names (which is just one more thing for me to forget to update when I change the site).

atb_if_form

A simple, hopefully self-explanatory conditional form:

<txp:atb_if_form name="someform">
	<p>someform exists.</p>
<txp:else />
	<p>someform doesn't exist</p>
</txp:atb_if_form>

atb_output_form_if_exists

Can be used exactly the same way as the built-in output_form tag, except it doesn’t raise an error if the form provided doesn’t exist:

<txp:atb_output_form_if_exists form='foo-<txp:section />'>
    This text will be available via the txp:yield tag in foo-[section].
</txp:atb_output_form_if_exists>

It can also be used with a txp:else tag:

<txp:atb_output_form_if_exists form='foo-<txp:section />'>
    This text will be available via the txp:yield tag in foo-[section].
<txp:else />
    <txp:output_form form="foo-default" />
</txp:atb_output_form_if_exists>

You can also follow this on GitHub.

Download: atb_if_form-0.9.txt

atb_twitter

Display your formatted Twitter feed on your Textpattern site

Apr 18, 09:02 PM

atb_twitter displays feeds from microblogging platforms (Twitter and sites based on StatusNet, including identi.ca) on your website, using a Textpattern form for formatting, so you can do something like this:

<txp:atb_twitter count="20" user="daydreamlab">

<txp:atb_tw_if_first_tweet>
<h2><a href="http://twitter.com/daydreamlab"><txp:atb_tw_user_name /> on Twitter</a></h2>
<ul>
</txp:atb_tw_if_first_tweet>

<li>
<span class="tweetdate"><txp:atb_tw_created_at />:</span> 
<br /><txp:atb_tw_text />

<txp:atb_tw_if_is_reply>
<br />
<a class="inreply" href="http://twitter.com/<txp:atb_tw_in_reply_to_user_id />/status/<txp:atb_tw_in_reply_to_status_id />">
in reply to <txp:atb_tw_in_reply_to_user_id />
</a>
</txp:atb_tw_if_is_reply>

</li>

<txp:atb_tw_if_last_tweet>
</ul>
</txp:atb_tw_if_last_tweet>

</txp:atb_twitter>

If you’re interested in that kind of thing, you can follow development on GitHub.

Download: atb_twitter.txt

atb_customize_feeds

Enhance your feeds

Oct 9, 07:58 AM

atb_customize_feeds allows you to modify Textpattern’s article syndication feeds by creating a few new forms that are either parsed and appended to your feeds, or which replace article bodies and excerpts in feeds.

Possible uses include appending file enclosures to your feeds (for podcasts, for example), generating excerpts with <a href="http://www.wilshireone.com/textpattern-plugins/rss_auto_excerpt">rss_auto_excerpt</a>, or appending permlinks to your articles’ text.

(Written and tested on Textpattern 4.2.0. Everything should work in any version since 4.0.4, but I make no promises…)

Download: atb_customize_feeds_v0.9.txt

atb_image_pulldown

Easily assign article images.

Jun 9, 06:06 AM Screenshot: atb_image_pulldown

atb_image_pulldown is a simple plugin that replaces the Article Image text box with a pulldown list showing all images in order by category and name. This should make it fairly easy to assign article images, assuming you use well-chosen names for images and categories. There’s no configuration unless you’re using another plugin to enable multiple article images, then there are some options in the plugin code to replace the pulldown list with a multi-select list box.

Download: atb_image_pulldown_v021.txt