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',
    ),
  );
?>
CommentFileSizeAuthor
#3 views_integration-2189781-3.patch1.8 KBjibus

Comments

bofrost’s picture

Hi,
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.

mabho’s picture

Thank 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.

jibus’s picture

Status: Active » Needs review
StatusFileSize
new1.8 KB

Attached patch will add the views integration.

jibus’s picture

Category: Support request » Feature request
bofrost’s picture

Status: Needs review » Patch (to be ported)

Great Job Jibus!
Patch is in the actual dev version included.

bofrost’s picture

Status: Patch (to be ported) » Closed (fixed)