Hi,

I had to implement a solution where the user is allowed to change the sort order of one specific taxonomy sub tree.
So I wrote a mini patch which adds an additional taxonomy term handler.

Comments

yarroha’s picture

Status: Needs review » Needs work

Hi,
i have tried to apply your patch but got the following error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-tax-0-' for key 'PRIMARY': INSERT INTO {draggableviews_structure} (view_name, nid, delta, args, value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => tax [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => 0 ) in drupal_write_record() (line 6851 of /home/yarroha/www/d7/htdocs/includes/common.inc).
jantimon’s picture

Sry I can't reproduce your bug.
Could you please provide more information?

yarroha’s picture

Status: Needs work » Reviewed & tested by the community

Well, i've tried to rebuild view and errors dissapeared. Then i've tried to reinstall clean drupal and test it - all works fine.
views: 7.x-3.0-beta3
draggable views: taken from git (14 august 2011)

ygerasimov’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new9.73 KB

Sorry, but when I create a view based on terms I get view not sortable. See attached screenshot. In the meanwhile saving leads to save of terms weights.

Maybe I miss some other patch that should be applied before this one? @Merco please advise.

Terms problem

istryker’s picture

Status: Needs work » Closed (duplicate)

7.x-1.x-dev is now unsupported

Marking this as a duplicate. We currently have 2 solutions that work in 7.x-2.x-dev. They solve the problem in different ways.

#1716912: Add a taxonomy term weight handler
#1851752: Drag handler for saving weight into any column in any base table