Ticket #5857 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

an object's terms should be positionable

Reported by: andy Assigned to: ryan
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: taxonomy sort order has-patch
Cc:

Description

There is no way for object term entry order to dictate term display order.

Example: register a taxonomy "People" for listing people in photos. You want to list them from left to right but the taxonomy system can't do that.

A plugin could do it by storing in postmeta the terms in entry order and filtering the output, but it could be made a core feature with a little effort.

Add a column in the term_relationships table. Call it term_order. When terms are saved into taxonomy registered with 'sort'=>'term_order' we can do something like this:

INSERT INTO term_relationships (object_id, term_taxonomy_id, term_order) VALUES (1, 1, 1), (1, 2, 2), (1, 8, 3) ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)

Attachments

5857.diff (1.8 kB) - added by andy on 02/14/08 06:41:12.

Change History

02/14/08 06:41:12 changed by andy

  • attachment 5857.diff added.

02/14/08 17:14:19 changed by andy

  • keywords changed from taxonomy sort order to taxonomy sort order has-patch.
  • owner changed from anonymous to ryan.

02/14/08 17:17:57 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6851]) Support ordering for term relationships. Props andy. fixes #5857

02/17/08 17:25:40 changed by darkdragon

  • milestone changed from 2.6 to 2.5.