I'm currently trying to create a simple list view to work in Drupal 5. The view (called Portfolio) works, but I am having trouble getting my list template (called views-list-Portfolio.tpl.php) to be used: instead, I just get the default list view. I used the theme wizard (in the Drupal 5 version of the Views module) to generate my code, so I got this for template.php:
function phptemplate_views_view_list_Portfolio($view, $nodes, $type) {
...
}
My feeling is that this function isn't getting called correctly by the Views module. Does the function still need this name to be correctly called by Views? The consequence of this is that I can't rearrange the HTML in the list view and my CSS file isn't being included.
(I've left out the template and the CSS file, as they are being ignored by Drupal anyway. They are named as suggested by the Views wizard (views-list-Portfolio.css and views-list-Portfolio.tpl.php). I have put all of the files into the correct theme folder (I think): themes/garland in my case. If it's relevant, I'm using PHP 5.1, I installed Views from the version on drupal.org yesterday, and I'm using Drupal 5.1.)
Thanks in advance.
Comments
there are still a couple of
there are still a couple of bugs in the 5.x-1.5 release, maybe try the 5.x-dev version and see if the problem's taken care of.
Thanks. I tried that, and
Thanks. I tried that, and things seemed to straighten themselves out. I did have to run the wizard again and start from scratch, but it worked in the end.