Views Theme Wizard - error

Joined: 09/20/2007

I am working on a new website for my church using drupal 5. I am making good progress, but have run into an issue with creating a block using a list view.

I have gone in and created the block. When I set it up, without using the theme wizard, I can see unthemed content. I want to use the wizard, so that I can set up a template with standard text that will appear in the block between some of the fields.

When I go into the theme wizard, I have copied the
function phptemplate_views_view_list_view-name ()
into my template.php file.

I also copy the views-list-view_name.tpl.php file.
I also copy the view-list-view_name.css file.

When I do this and try to load the block, the block has one unordered list, with no content. Inside the html is a comment that reads:

PHPTemplate was instructed to override the views-list-sugg_reading theme function, but no valid template file was found.

Am I missing a step in the creation of the tpl.php file? I have moved it into the theme folder. In that file, I see the commented text that includes a number of variables, including one for view-type. Do I need to set up some php functions to tell the template that I am setting up a block view as opposed to a page view?

If you need to see the site: http://new.christccocala.com
The site still needs some more theming, the block that I am fighting with is the Suggested Readings block at the bottom of the front page.

If I can figure this one out, I would like to create at least a couple of other list views.

Thanks.

Joined: 09/20/2007
Found the cause

I have kept searching for information on this issue. I finally came across a drupal forum issue relating to an incompatability between the Views Theme Wizard and subtheming. If I were hacking the Zen theme for my site instead of creating a subtheme of Zen, I wouldn't have had any problems.

If anyone else has this issue there is a fix in thie drupal thread.

John
john-simons.com

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
That's Why I have not seen this...

I never hack themes or try to make subthemes of Zen. This is one of those scenarios I just don't run into. Good to know.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com