Servus,
I am trying to theme my frontpage with template.php and the provided code from the themewizard in views module. It seems that the function (provided code from themewizard) in template.php except the region-function are not recognized or working. When I do some changes in views-list-FrontBlockLoesungen.tpl.php, nothing happens.
I think the error is in template.php. Maybe I forgott to add something between the two functions??
I also tryed to put the function phptemplate_views_view_list_FrontBlockLoesungen in a separate file and called it with "include ..." before the region-function in template.php - but it is still not working.
Somebody got an idea??
My template.php looks like this:
<?php
/** Define the regions **/
function berutheme_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
'contentleft' => t('content left'),
'contentright' => t('content right'),
'contentbottom' => t('content bottom'),
);
}
function phptemplate_views_view_list_FrontBlockLoesungen($view, $nodes, $type) {
$fields = _views_get_fields();
$taken = array();
// Set up the fields in nicely named chunks.
foreach ($view->field as $id => $field) {
$field_name = $field['field'];