After upgrading to Version 3.2 I'am not able to Group my view anymore. What I would like to achieve is to GROUP BY taxonomy term like this

term1
-title1
-title2
-title3

term2
-title4
-title5

and drag the titles within the term. This was possible with a previous version of draggable views. Is this not possible anymore or achieved in another way?

Thanx

CommentFileSizeAuthor
#12 draggableviews-groupby.patch3.91 KBfearlsgroove
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sevi’s picture

The "group by" functionality was kicked out by me. Actually it has never worked.

This would require completely different configuration as well as a different settings form. I plan to implement support for the "Grouping field" for the next releases.

cybernomad’s picture

Status: Active » Postponed

Hi sevi,
thanx for the reply, waiting for the new releases then, you guys are doing a great job

aether’s picture

+1 for the return of this functionality.

Subscribe.

joachim’s picture

I'm interested in this too. Being able to order nodes and move them between terms too would be very useful.

dixon_’s picture

Moving items between terms can be quite tricky as that would mean a node_save() needs to be triggered with the new term. And with all the possible types of argument, a system like that could be very complex.

Aren Cambre’s picture

Title: Grouping Draggable views » Grouping DraggableViews
Version: 6.x-3.2 » 6.x-3.x-dev
Component: Miscellaneous » Code
Category: support » feature
Priority: Minor » Normal

+1

Treating the taxonomy term as a parent-child relationship may be an alternate solution.

Michael Zetterberg fd. Lopez’s picture

subscribe

squarecandy’s picture

+1 for this.
PS - Awesome plug in! Intuitive admin interfaces make everyone happy.

my-family’s picture

Subscribe and thanks for this module.

geek-merlin’s picture

+1

iamjon’s picture

+1 This functionality would be awesome!!!

fearlsgroove’s picture

Status: Postponed » Needs review
FileSize
3.91 KB

Attached is a simple starting point that works for me. You can drag items within a group, but not between groups.

Rob_Feature’s picture

Status: Needs review » Reviewed & tested by the community

I've got #12 running on a production site and all works well. I'd suggest we get this rolled into the dev release if more can test it. Marking as reviewed.

burgs’s picture

This is fantastic. Any chance we can add dragging between groups?

Rob_Feature’s picture

@burgs
I think the comment was made earlier (and is quite true) that dragging between groups would actually have to alter node data (ie. remove one term and add another to a node). I think that's overstepping the purpose of this module.

This is really an ordering module, not a node alteration module. So, I might suggest that keeping dragging within groups is a good path and that dragging between groups might not be good for this module's path forward. That's my 2 cents.

geek-merlin’s picture

@rob
i dont see a problem in group ordering.
changing a taxonomy field for every node seems not too different from changing a parent field for every node!

Aren Cambre’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
Status: Reviewed & tested by the community » Needs work

Probably should get this in on v7 first since it's a new feature.

baaj’s picture

+1

jdln’s picture

Subscribing.

JayKayAu’s picture

@axel.rutz - However, what happens if the Grouping field isn't a Taxonomy term?

For example, I have a view where Candidates are listed, grouped by an Agent, which is a nodereference field. So in that case, dragging between groups means changing the nodereference on the Candidate nodes.

In a general sense, this could get a little tricky, as the grouping field could be of any CCK type, which means to drag to another group means knowing how to reassign values of any given CCK type. I have no idea how hard this could be, but I suspect it's not trivial.

On the other hand, perhaps inter-group dragging could be done on fields you KNOW to be a taxonomy term, or other known type of field. So you could provide this functionality but limited to only supported types. That could still be quite useful.

geek-merlin’s picture

ah ok, i think i get your point:
is it possible to change and save a field value generically, without knowing its type.
dont know, but a quick peek in the source looks like no big problem.

we already have a type switch in implementations/draggableviews_handler_fieldapi.inc
which suggests that only noderef needs special treatment.

and wow, i hope i find some time soon to look into this, this looks like very good and well commented code!

elly’s picture

subscribing - is the patch in #12 for the d6 version? very interested in being able to group draggable views by fields in d7.

mstrelan’s picture

subscribe

sachbearbeiter’s picture

subscribe

xtiansimon’s picture

The patch above was submitted during the status as a 6.x module. Only this issue was moved to 7.x for integration, and I see it also under Pending Patches as 7.x.
Is this patch on this page OK for DraggableViews 6.x-3.5 testing?

UPDATE: Tried to apply this patch to zero success. I'm a newbie to git, so maybe I didn't do it right?
UPDATE2: applied the patch manually. No errors; however, the views list is draggable across groups. The inverse was described above and is the desired behavior.

webankit’s picture

+1

steinmb’s picture

Reading up on the thread. +1 to this feature in 7.x, but from what I can understand, is this patch for the ver. 6 version of dragableviews and Views 2. To get with working with Drupal 7 we port this patch to Views 3, and merged it with dragableviews-7.x-1.x-dev.

bluesband’s picture

+1
I need group by feature for any field, like html list format. Thanks.

mindaugasd’s picture

+1

mattsmith3’s picture

wow... really needed this for a project. confirming that patch isn't working on d7 and views 3.

here to test when someone can port this patch.

cindyr’s picture

+1

lorenlang’s picture

+1 - could REALLY use this on my current project as it would be so much easier for my end user than manually setting weights

iStryker’s picture

Status: Needs work » Closed (duplicate)

This issue was tagged 7.x-1.x-dev. This branch is now unsupported.

In the latest 7.x-2.x-dev I was able to Group By with Native Handler. Draggableviews 7.x-2.x-dev currently doesn't support Taxonomy Terms, though there is 2 issues that are rtbc, and is on the TODO list.

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

I am marking this as duplicate of #1514116: Group by support, multiple native sorts per display. Comment #3 has an tarball example which is what I tested with.

If you want this to work with 6.x-3.5, please open an new issue.
If you want this to work with taxonomy handler & 7.x-2.x, please open a new issue.

I am closing this issue as this is an

  • extremely old issue (sept 2009)
  • its a duplicate of #1514116
  • fixed in 7.x-2.x-dev.
  • cleaning up issue queue