Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-06-24 17:51:08

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

aks_dragdrop: Drag&Drop categories (article, link, image, file)

Summary

  • Drag & Drop hierarchical categories list with mouse and touch compatibility.
  • Allow hide category from TxP categories list
  • Bulk insert categories
  • Admin-Side plugin. It does not need any additional files.

aks_dragdrop plugin based on Nestable jQuery plugin

Requirements

  • Textpattern · 4.5+

Screenshot

Bulk insert categories:

Download: aks_dragdrop

Plugin homepage

Last edited by makss (2016-01-16 18:43:25)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#2 2015-06-24 19:39:02

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

Great, I like all things that are drag&drop!
Wish a drag&drop media uploader like that too…

Offline

#3 2015-06-26 14:48:15

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

The new version aks_dragdrop plugin, updated first post.

Does it make sense to develop this plugin as a full replacement for Categories Tab?

Possible development:
  • Display articles count per category (with link to articles search)
  • Edit category
  • Drag & Drop delete category

What else can you add to the list?


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#4 2015-06-26 15:19:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

makss wrote #292137:

Does it make sense to develop this plugin as a full replacement for Categories Tab?

Yes! This is a great idea. I’d like to take elements of this for core at some point as it’s a much more natural way of working with hierarchical lists. It’s a bit fiddly sometimes (probably a fault of the jQuery plugin) but on the whole I like the sentiment. Good work.

I can’t fully test it as the Bulk Insert twisty doesn’t work on 4.6-dev where I installed it (the markup class has changed).

But the ability to edit cat info would be ace. Perhaps even be able to expand each node itself to reveal the name and title (plus description on 4.6+) so they can be directly edited and saved via AJAX would be brilliant. No need to show the parent as that’s done visually.

The core’s category creation system, where it allows you to select the parent and then mass-create categories under that category, is very handy when setting things up. Presumably your bulk insert does something similar?

Display articles count per category (with link to articles search)

That’d be grand. Helpful to know what’s assigned to what and also to be able to see when a cat’s empty so it can be deleted. I notice that the plugin allows you to Hide a category even if it has articles assigned to it. What does that do for the front-end? Remove it from the category_list tag? And what does it do to any content that uses that category?

Drag & Drop delete category

How about simply adding a ‘trash’ or ‘x’ icon near the ‘Hidden’ area? It could act as a sort of Recycle Bin area then, allowing you to put things in it ready for deletion, then clicking the ‘x’ will delete them. This assumes they don’t have content attached to them — and if they do, what happens? Category cleared from that content? Category for that slot promoted to parent if it has one? Something else?

Lots to think about.


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

#5 2015-06-26 17:23:29

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

I have not tested to work on Textpattern 4.6, the next version will correct.

Open “Bulk insert categories”:

“Hidden categories” use TxP bug(Very convenient for me, it is not necessary to fix it. :-) ) with not exists parent. If a parent does not exist, then the category is not displayed in the category tree, and I did is displayed as a hidden category.

I think to Delete use the same container as for “hidden categories” with Drag&Drop. The actual removal will take place on the button Save. Make the most simple without using Ajax and without any additional buttons. If it works, then we can add Ajax and other decorations. :-)

With the removal I want to do is simple. Remove only empty category.
For non-empty categories display some this:

Category yyyy is not empty, see here...
( and link to /index.php?event=list&search_method=categories&crit=yyyy )

Last edited by makss (2016-01-16 18:44:33)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#6 2015-06-26 17:33:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

makss wrote #292147:

I have not tested to work on Textpattern 4.6, the next version will correct.

No problem. Just a heads-up.

“Hidden categories” use TxP bug(Very convenient for me, it is not necessary to fix it. :-) )

Haha, I didn’t notice that. Since there’s no way in the core UI to assign a category to a non-existent parent, it’s not something that crops up very often so, unless doing so causes corruption in the post-order tree structure, we’ll leave the undocumented bug there for you!

The actual removal will take place on the button Save.

Sounds good.


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

#7 2015-06-30 13:14:07

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

New version aks_dragdrop v0.4

Changes:

  • Add display articles count per category (with link to articles search)
  • Add Drag & Drop delete category
  • Support TxP 4.6-dev
ToDo:
  • Edit category

Last edited by makss (2016-01-16 18:45:03)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#8 2017-06-13 07:39:19

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_dragdrop: Drag&Drop categories (article, link, image, file)

New version aks_dragdrop v0.4.1

  • Support TxP 4.7-dev

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

Board footer

Powered by FluxBB