Hello, i am new on drupal and i am starting to fight with the views module.
I would like to make a view with two columns using Panels and Views. But on the columns i dont want teasers and also i dont want a list, so i have installed the bonus pack and now i am trying to modify one of the options to match what i want.
This is the code that i am trying to modify, inside the file views_bonus.module,v 1.8
function theme_views_bonus_panels_twocol_list($view, $nodes, $type) {
$teasers = true;
$links = true;
if (!module_exists('panels')) {
// return theme('views_view_nodes', $view, $nodes, $type, $teasers, $links);
return theme_views_view_list($view, $nodes, $type);
}
$content = array();
foreach ($nodes as $count => $n) {
$node = node_load($n->nid);
if ($count % 2) {
$section = 'right';
}
else {
$section = 'left';
}
$content[$section] .= node_view($node, $teasers, false, $links);// original line i want to change
}
foreach ($content as $section => $output) {
$content[$section] = '<ul>' . $output . '</ul>';
}
I would like to change the content to show a cck field, also, the title, autor, date, and fivestar voting api.
I want to make a frontpage similar to this one, two columns, preview image and small text with data.
http://show.zoho.com/popular?filter=1