An improved template for Textpattern plugins.
zem_tpl is an improved template for Textpattern plugins. It’s intended mainly for use with the PHP command line client, though it will work fine running on a web server.
Features:
Download:
zem_tpl-0.4.tar.gz
zem_tpl-0.4.zip
The package contains three files:
zem_tpl.php contains the code to compile plugins into the format required by the Textpattern plugin installer.
zem_plugin.php is the template itself. Make a copy of this file and edit it to write your plugin.
zem_example.php is a simple example plugin. It demonstrates both public-side tags and admin-side user interface features.
Typical use, at the command line:
$ cp zem_plugin.php abc_myplugin.php
[edit abc_myplugin.php]
$ php abc_myplugin.php > abc_myplugin-0.1.txt
abc_myplugin-0.1.txt is the finished plugin, ready to install.
In order to use Textile in the help section, classTextile.php must be in the include_path. The simplest way to ensure this is to copy it to the current directory.
Alternatively, both classTextile.php and zem_tpl.php may be placed elsewhere in the include_path.
13 August 2005, 21:19 by Alex ·
Commenting is closed for this article.
— Eric D. Burdo Jan 20, 08:36 am #
— Beate Feb 2, 05:31 am #
Hi zem…
Shouldn’t it be noted here that the plugin template is now maintained in the svn repo ?
— Mariano Absatz Sep 2, 03:04 am #
@Beate : your link is password protected, i can not open this site.
— 3dsl Eugen Design Nov 14, 06:00 am #
Just tested both links and they work fine. I don’t think the problem is at this end.
— Alex Nov 14, 06:58 am #
Thanks for the template, I have just been seeking for something like this to adapt some of my php code to TP.
— Mike Mar 20, 02:27 pm #