Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 09:12:34

abu
Plugin Author
From: Switzerland
Registered: 2025-04-03
Posts: 8
GitHub GitLab Mastodon

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.

https://codeberg.org/abu/abu_catcloud

Offline

#2 Yesterday 16:06:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,013
Website GitHub

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

Board footer

Powered by FluxBB