Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-07-23 22:58:52

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 191
Website

Add more tags to Tag builder

Currently the Tag builder used by some Textpattern sections is missing some more or less important tags, like those related to error status. Perhaps Tag builder could have more tags to build stuff with. :-]

Offline

#2 2018-07-24 21:16:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,622
Website

Re: Add more tags to Tag builder

It’d be nice if tag builder was a bit more flexible and could work with “data files” or we could somehow “register” tags with the builder that define each tag and its attributes/handling and which group it goes in.

This might actually be doable as part of the tag registry if we’re clever about it. Since not all tags appear in the builder, when registering tags you could specify whether a tag appears in the builder(s) and where they go (group name) and pass in its attribute definitions or handlers/callbacks.

Side benefit: site designers could define their own set of tags to reveal to clients in the builder by registering/unregistering core tags with it. Imagine how cool that would be. People could write tag definitions for their plugins and have those buildable! And with the new ability to make custom short-tags, this’d be a real bonus as you could write your own tags with attributes and register them with the builder.

At the moment it’s a pain to keep the tag builder in pace with the tag registry, so I’m keen to explore any options we have for marrying the two. Anyone have any thoughts on this?


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