Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2012-06-13 19:51:16

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

Re: smd_write_cats: create categories on the fly from the Write tab

MattD wrote:

It doesn’t appear to be working for images

D’oh! Missed the image_insert and file_insert hooks. Try re-downloading the beta and let me know if that’s any better. Sorry about that.


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

#22 2012-06-13 20:42:19

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,251
Website

Re: smd_write_cats: create categories on the fly from the Write tab

Category creating is working but I can’t seem to get it to create a child category, either using an existing parent or providing a new parent.

Even using the example Parent category -> New category results in the creationg of “new-category” under root.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#23 2012-06-13 22:24:49

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

Re: smd_write_cats: create categories on the fly from the Write tab

MattD wrote:

Category creating is working but I can’t seem to get it to create a child category

Bah, third (4th?) time lucky. Try the latest beta download please.

Notes:

  • The Parent you specify must be the category Title not the Txp-sanitized (possibly hyphenated) name.
  • If you try to assign a child to a non-existent parent (i.e. you are trying to create both Parent -> Child in one step) then the child will be assigned to root.

I could probably find a way round it so it made both parent and child cats, but for now it’s a known limitation that I’ll document.

Last edited by Bloke (2012-06-13 22:25:40)


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

#24 2012-06-13 23:04:31

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,251
Website

Re: smd_write_cats: create categories on the fly from the Write tab

Looks like that did the trick. I’ll continue testing and update you if I hit an issue.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#25 2017-12-01 09:04:13

mikulas
Member
From: Czech republic
Registered: 2012-03-15
Posts: 28

Re: smd_write_cats: create categories on the fly from the Write tab

I want to ask if exist a plugin version for TPX 4.6+. Would the plugin be used with the feature of multiple image upload in the upcoming version of Textpattern?

Offline

#26 2017-12-01 10:01:18

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

Re: smd_write_cats: create categories on the fly from the Write tab

mikulas wrote #308074:

I want to ask if exist a plugin version for TPX 4.6+.

Not yet, sorry. I’m sure me or someone else can tweak it to hook into the correct DOM nodes. Everything else should work as before.

Would the plugin be used with the feature of multiple image upload in the upcoming version of Textpattern?

I think it could be made to work with it, if there’s enough screen real-estate available.


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