Task Order in Views

kevin riggen - September 28, 2009 - 16:15
Project:Storm
Version:6.x-1.9
Component:Storm Task
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey everyone. Brilliant module.

I am creating my own interface in views, that is very task-centric. Its similar to the Tasks view in Storm.

How can I handle Task-sorting in views? I've done some views-customfield trickery to sort child tasks under parent tasks successfully, but I cannot extend this to 3rd generation children.

What I'm doing at the moment is involved, but here is an idea

IF this task is a child task, SortID = $data->parent_task_ID . "B"
IF this task is a parent task, SortID = $data->nid . "A"

As you can see, all children will have their parent task nid then "B" as a Sort ID, so they sort directly under the parent. Then I can use CSS to make them indented.

With a child of a child however, I have no "grandparent_task_ID", or anything else I can relate the three tasks to.

So how do you guys do it on the tasks theme you have? I figure there is a value in the database somewhere I can use to create the indents using css.

Maybe I should just customize the tasks .tpl.php, and use the nice drag and drop?

Suggestions would be awesome. Thanks.

#1

Magnity - October 23, 2009 - 12:06

I suspect you're breaking new ground here - i'm not sure of an answer and would welcome any suggestions from anyone...

 
 

Drupal is a registered trademark of Dries Buytaert.