Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2012-05-31 18:06:27

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

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

I’d love something like the for the Images tab and Image Categories.


My Plugins

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

Offline

#17 2012-05-31 19:25:48

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

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

MattD wrote:

I’d love something like the for the Images tab and Image Categories.

Hmmmm, no reason it couldn’t be extended I suppose. Let me sleep on it. Though the plugin name might need a rethink.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#18 2012-06-11 15:39:01

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

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

Stef, Is this an easy change to support images? I took a look at it but I couldn’t figure it out…


My Plugins

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

Offline

#19 2012-06-12 10:09:05

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

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

MattD wrote:

Stef, Is this an easy change to support images?

Reasonably so. Please report if the beta v0.30 works ok for the other content types. The only reason it’s not official yet is because it only half works on the Write tab under SVN. Gotta talk to Robert about something first.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#20 2012-06-13 17:40:19

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

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

It doesn’t appear to be working for images. When I enter a new category and save the image the image shows in the list with the correct category but when I click edit again the category is blank and the new category does not exist in the dropdown or on the category tab.


My Plugins

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

Offline

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

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

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.

Hire 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,254
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: 12,477
Website GitHub

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.

Hire 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,254
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: 38

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: 12,477
Website GitHub

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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB