Needs work
Project:
Kaltura
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2011 at 09:47 UTC
Updated:
19 Jul 2011 at 02:38 UTC
There is a Video content type which have filed type of Kaltura Media.
There is a Media Gallery content type which have reference to Video.
When creating view of Videos additional fields (like duration, thumbnail, etc.) shown properly.
When creating view of Media Galleries + Videos as relathionship, almost all field except of entryId are empty.
In kaltura_views.view.inc I've replaced kaltura_views_handler_field_kaltura_duration to views_handler_filter_numeric and I see that since that data of this field is shown good, however it is unformatted.
'kaltura_duration' => array(
'title' => t('kaltura item duration'),
'help' => t(''),
'field' => array(
'handler' => 'kaltura_views_handler_field_kaltura_duration', // I've replaced handler to views_handler_filter_numeric
'click_sortable' => FALSE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
),
I am using views 6.x-3.x-dev.
Comments
Comment #1
dealancer commentedI have mad var_dump of the $data that is passed to kaltura_views_handler_field_kaltura_duration and see that there isn't any node_kaltura_kaltura_duration field.
I have tried to do another way: add node relationship in kaltura_views.view.inc. And then made view using relationship to node_kaltura table.
In $data i got need field but with with ode_node_kaltura__ prefix:
node_node_kaltura__node_kaltura_kaltura_duration (String, 1 characters ) 5
Comment #2
dealancer commentedComment #3
dealancer commentedComment #4
dealancer commentedFor the view views_handler_field some another approach for themining is used:
See http://api.freestylesystems.co.uk/api/drupal/contributions--views--handl... and http://api.freestylesystems.co.uk/api/drupal/contributions--views--theme...
So I think theming functions here should to be remade. Changing status and title of the issue.
Comment #5
xurizaemonDefinitely, the existing theme layer of this module is pretty poor form.
Duplicate of #685900: Use theme & translation layers & FAPI. Patches welcome!