Hi, this is an useful module for the project I am developing right now. So useful I am anxious to check if you have any forecasts on when the Views support will be added in the future? I need this feature so bad...
Although I have some coding experience with Drupal, I have never put my hands in Views code, besides some hooks to alter the Views output. I would like to help add that feature, but I am pulling my hair right now and I am not sure exactly how to start implementing this on Views. By checking other modules that have custom Views implementation, I can see they usually add a custom (module specific) table. In this case, we will be adding support to a property to the taxonomy_term_data table. I assume we have to use hook_views_data_alter.
Could it be something like this (code borrowed from Views node Post date)?
<?php
$data['taxonomy_term_data']['created'] = array(
'title' => t('Post date'), // The item it appears as on the UI,
'help' => t('The date the content was posted.'), // The help that appears on the UI,
'field' => array(
'handler' => 'views_handler_field_date',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort_date',
),
'filter' => array(
'handler' => 'views_handler_filter_date',
),
);
?>
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | views_integration-2189781-3.patch | 1.8 KB | jibus |
Comments
Comment #1
bofrost commentedHi,
at the moment I am very busy... so I can not implement that for you.
But you are on the right way and I can have a look on your code after finish.
Maybe you can provide it as a patch, if you found the solution.
Comment #2
mabho commentedThank you for you answer. I will install your module to my client`s project anyway. In the future, when views support is available, at least the records will be filled and I will be able to use that data. I hope I can help with this module. I will try to put my hands on this on the spare time.
Comment #3
jibus commentedAttached patch will add the views integration.
Comment #4
jibus commentedComment #5
bofrost commentedGreat Job Jibus!
Patch is in the actual dev version included.
Comment #6
bofrost commented