Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
My first plugin: abu_catcloud
I started writing this plugin for my own use while migrating my site from Bludit to Textpattern.
It displays a weighted list of used article categories, and I think it might be useful for others too.
Offline
Re: My first plugin: abu_catcloud
Nice idea! Welcome to plugin authorship.
When you’re ready to update to the next version, you can save yourself some bytes and manual processing by using doWrap()
which takes the wraptag
, break
and class
attributes and applies them to the passed contained content/list. It also gives you access to wrapform
, breakform
, breakby
and host of other global attributes, plus the ufo/spaceship replacment <+>
.
There’s a companion doLabel()
for handling label/labeltag, although that function is a bit… pedantic, shall we say, so not everybody uses it.
I’d love our new UI Class library to be able to handle some of this stuff more intuitively over time, so we may farm more processing over, as we improve the library.
Thank you for sharing your plugin.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Pages: 1