I've been reading the handbook and forums all afternoon working on trying to get my views, using the views module, to be displayed differently. I'm a little lost as to where to put the code to affect the change.
I created my own theme and in that theme folder I have a template.php file. Do I put a function in that file or does it go someplace else?
While researching I saw this code and see the CSS for layout display, but I can't find how I change the classes such as div class='view-label view-label-$field[queryname]' to change the format for my item and fields. Do I add a CSS style to my style sheet that's in my themes folder? If so, what do I name it?
I only need to show the title and the start time for an event, but it shows up on 2 lines with the title indented and the field outdented. I would like either one line or the opposite - title outdented, field indented.
THANKS for the help!
<?php
/**
* Display the nodes of a view as a list.
*/
function theme_views_view_list($view, $nodes) {
$fields = _views_get_fields();
foreach ($nodes as $node) {
$item = '';
foreach ($view->field as $field) {
if ($field['label']) {
$item .= "
" . $field['label'] . "
";
}
$item .= "
" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node) . "
";