Problem/Motivation
Thanks for this functionality, works well #2903567: Args not working, but I have scenario where it will be nice to have ability to skip this arguments from join.
We have a view with all articles and we sort it using draggableviews, additional we have the reference to taxonomy term in this nodes so we also want to displays this articles grouped by terms using views (Taxonomy term - Page (/taxonomy/term/%)). When arg is available, Join plugin automatically attach it to the query but we store our nodes with weight without any arguments in database because we use a simple view to drag and order without any filters and arguments.
Current result: we can see 0 value of weight on each node
Expected result: we want to see weight like it is in our sort view
Proposed resolution
Extends our $context table
$context = [
'select_query' => &$select_query,
'table' => &$table,
'view_query' => &$view_query,
'skip_args' => FALSE,
];
by skip args flag and allow developers to alter it using
hook_draggableviews_join_withargs_alter()
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | draggableviews-3198138-2.patch | 1.36 KB | lamp5 |
Comments
Comment #2
lamp5Comment #3
pvigorito commentedworks for me, and fixed a contextual filter issue