I am trying to override the presentation of a field that's produced by a view, output in list mode. Basically, I have a CCK date field, and I need the text of the date rather than the node title to be a link to the node. In addition, I have a file upload field that displays the filename, and I need it to display some arbitrary text instead, but with the link to the file.
I had no trouble making similar changes to the node, but after days of reading and experimenting, I cannot wrap my head around this.
I've successfully overridden the list display using the views theme wizard, but it's not like the nodes where I can get my hands on all the parts that make up a link. All I can seem to find is fully-formed link. So I tried taking a look at the sample code created by the views theme wizard to theme an individual field, added it to my template.php and attempted to create template file.
I was working with this generated sample:
/**
* Function to handle a sample field.
*/
function phptemplate_views_handle_field_meetings_and_minutes_node_title($fields, $field, $data) {
$info = $fields[$field['fullname']];
if ($field['handler'] && function_exists($field['handler'])) {
return $field['handler']($info, $field, $data->$field['queryname'], $data);
}
if ($info['handler'] && is_string($info['handler']) && function_exists($info['handler'])) {