Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2020-06-04 18:35:45

From: Leeds, UK
Registered: 2006-01-29
Posts: 9,799

Re: smd_textile_bar: Simple Textile insertion for the Write panel

I’ve pushed a few commits recently including one for inserting shortcodes as containers. So now you can highlight some text and wrap your shortcode around it. Handy for situations where you want to use <txp:yield/> inside them to render user-defined content. Check the commit message for usage and current caveats.

If anybody has time to download the .php plugin code and give it a whirl, I’d be grateful for some more feedback before I make an official release out of it.

I suspect if anybody has really long shortcode names(!) the bar will do some horrible wrap thing, but I guess that’s an edge case since the whole point of them is to make them, well, short.

Still not sure how to handle the nested combo-box thing around the form selector either. If anybody has any ideas on how to successfully render such things and make them accessible, I’m all eyes. Thank you.

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


Board footer

Powered by FluxBB