eck ignores delta

Created on 10 August 2019, over 5 years ago
Updated 20 December 2024, 1 day ago

It's about order in non-eck fields delta referencing eck entities.
Eck sorts Drag-and-Drop order by eck instances ids – why?
In ordinary bundle of node material, in it's node
I've made delta (multiple values) field with machine name field_element.
that references to eck entity.
I use IEF to create new "values" for this field.
That's nice: i can drag instances (title + image) in the field up and down to change their order.
But how can i output this order in a views?
Views displays this field values according to eck entity instances ids.
But i need according to node__field_element.field_element_target_id column order.
I've tried add
node__field_element.field_element_target_id AS row_weight
and order by LENGTH(row_weight)
in hook_views_query_alter:
$query->addOrderBy('LENGTH(row_weight)');,
but views query doesn't support functions in 'order by'.

My views displays eck ecntities,
i've tried add relation to node bundle containing the eck reference field,
but i can't add delta of the field – there is no such field.

Feature request
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇺🇦Ukraine dunot

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024