For my frontpage I've made some views to show the five latest news items and the five latest blog posts. Using the Theming Wizard I've made views-list-fpnews.tpl.php and put a bit of code in template.php which was output by the Theming Wizard. The only minor is that the template isn't applied, although the file exists and it is placed in the root of the site template I'm using.
The way I'm showing the views on the frontpage is by blocks. For both news and blogs I've made two new regions for positioning and using the Admin settings both blocks are put in their regions. The regions are in turn printed in the site template.
I hope anybody can see what goes wrong here, because after trying for a long time I'm totally dazzled.
Thanks in advance.
Comments
is the view type set to list
the example you give will only work if the view type is set to list, in administrate/views
?
View type has been set to
View type has been set to Teaser List.
The view itself seems to work, but only the template won't be applied.
teaser_list != list ;]
teaser_list != list
;]
50% of the solution
I renamed the view tpl file to "page-view-"viewname".tpl.php" and the template applied, but it is not displayed in a correct way. Best description is:
It is a blank page, not in Drupal embedded, displaying the content of the Template file.