feature requests for the unofficial D6 version
stevendeporre - September 17, 2009 - 08:10
| Project: | Image Title |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
like the module, but missing things:
- integration with views ans panels (so we can decide where to show the imagetitles)
- an approach like wp-sifr in wordpress (choose which titles you want to change to images, and which not)
- combination of imagetitle and sifr in that same approach?

#1
views integration:
function image_title_views_data() {
$data = array();
$data['image_title_node']['table']['group'] = t('imagetitles');
$data['image_title_node']['table']['base'] = array(
'field' => 'nid',
'title' => t('imagetitles'),
'help' => t("een beetje hulp"),
);
$data['image_title_node']['table']['join'] = array(
'node' => array(
'left_field' => 'nid',
'field' => 'nid',
),
);
$data['image_title_node']['nid'] = array(
'title' => t('image title nid'),
'relationship' => array(
'base' => 'node',
'field' => 'nid',
'handler' => 'views_handler_relationship',
'label' => t('image title'),
),
);
$data['image_title_node']['image'] = array(
'title' => t('image'),
'help' => t('the image title image'),
'field' => array(
'handler' => 'views_handler_field',
),
);
return $data;
}
it's only a start. Being a newbie, I did not play with handlers yet. Maybe someone can do this for me? For now, just change "output" to and things work out.