I have a view setup using the views module. This is meant to get the 12 most recent image nodes and display them as a list. I would like to modify the display, so I have created a new template using the Views Theme Wizard. This works OK in terms of displaying information, but I want to modify the link URL for the image in order to add additional caption information for the lightbox2 module.
The problem is, I can't fifure out the code to use to get an image to display. I know that it will be in the form of l(image_display(X,'thumbnail'), link)
but the question is "what should X be?"
This is an export of the view:
$view = new stdClass();
$view->name = 'latest_images';
$view->description = 'latest images';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Photos tagged with %1';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'new/images';
$view->use_pager = TRUE;
$view->nodes_per_page = '12';
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (