Ticket #3130 (assigned enhancement)

Opened 2 years ago

Last modified 9 months ago

Proposal for category improvements

Reported by: markjaquith Assigned to: markjaquith (accepted)
Priority: normal Milestone: 2.9
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc:

Description

Here is a quick mockup (non-functional HTML) of my category improvement idea:

http://img167.imageshack.us/img167/3561/picture3pz6.png

"Assigned categories" should be populated via AJAX, removed via AJAX. Category tree can and "Assigned categories" can work with each other... unchecking removes from assigned categories, or clicking the [x] removes the check. Ideally, you'd be able to hide either the flickr-like tag interface or the traditional category tree, so you could just use one or the other. Tags + Categories... best of both worlds.

Thoughts?

Attachments

quickcategories-001.diff (5.4 kB) - added by markjaquith on 09/14/06 08:52:21.
Work so far…
quickcategories-002.diff (8.6 kB) - added by markjaquith on 09/18/06 08:08:27.
Patch for /trunk/

Change History

09/13/06 22:57:32 changed by ryan

I dig it. With disclousre triangles of some sort on each section I think it would be really sweet.

09/14/06 05:42:40 changed by markjaquith

Another idea (someone else brought it up... maybe you, Ryan, but I'd been thinking the same thing):

Allow hierarchical category creation (including creation of non-existing parents).

I like the > character for that use.

We simply explode on ">" and then trim, and then start with array element 0 (N) and then go down the list. If element N doesn't exist on level N+1, we create it.

With non-hierarchical category entries for an existing category, we'd use the existing one (instead of creating a new top-level category). This logic would need some usability testing... there is potential for confusion.

09/14/06 06:57:57 changed by markjaquith

Newest mockup:

http://img157.imageshack.us/img157/3766/picture1jc0.png

Why re-invent the wheel with show/hide stuff when DBX already does it?

The entire "Quick Categories" box is originally display: none; and if there is JS support it is displayed.

Still doesn't "do" anything. I may be over my head with the JS stuff, but I'll give it a stab.

09/14/06 08:52:21 changed by markjaquith

  • attachment quickcategories-001.diff added.

Work so far...

09/14/06 09:01:08 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.

I'm calling it a night, but 001 is what I have so far. It adds and removes the items (adding categories if necessary), but it is interfering with the normal checkbox tree. It seems that the first onclick ajaxAdder() event to run "steals" the data, leaving it blank for the second one.

Skeltoac or mdawaffe probably can save me some head-bashing here.

Ideally, I'd like no disruption of the tree structure, although that may not be possible with the current code. I'd like it to just check the box. Eventually, I'd like it to be able to add parent and child in one submit and have it integrate into the current tree. Hey, a boy can dream.

I'm not sure if the ajax-adding should actually do the post2cat stuff... not sure how that'd integrate with the autosave and drafts and all that.

Ideally, the tree and the quick cats should be linked, so that adding/checking on either adds/checks on the other, and same for deletion. That may be tricky. My fallback would be to forget about updating the tree at all and just update the quickcats list. It could just insert hidden inputs and we can sort it all out with PHP on the other side.

Let me know if you have any thoughts.

09/18/06 08:08:27 changed by markjaquith

  • attachment quickcategories-002.diff added.

Patch for /trunk/

09/18/06 08:09:16 changed by markjaquith

New patch uploaded. Video of it in action, and additional thoughts here:

http://markjaquith.wordpress.com/2006/09/18/wordpress-sneak-peek-quick-categories/

11/30/06 00:12:55 changed by matt

  • milestone changed from 2.1 to 2.2.

03/27/07 22:37:29 changed by foolswisdom

  • milestone changed from 2.2 to 2.3.

09/05/07 19:50:46 changed by foolswisdom

  • milestone changed from 2.3 to 2.4 (next).

02/15/08 13:32:08 changed by pishmishy

  • milestone changed from 2.5 to 2.6.

Feature request so bumping to 2.6 for feature freeze.