We are having a problem with getting the theming function and template for our views to work
--
This is the context and background:
We are building a news-site, newspaper style.
For this we are trying to generate a View for our front page that generates just a thumbnail-sized image and the title from each submitted article, like in this example:
http://x-ray-mag.com/images/screenshot1.jpg (screenshot from cnn.com)
We define the View with the fields we want to show.
Using Blocks we can get the View to show in the right position on the pages we want.
So far. so good
Now to the issue at hand:
We would like to change the looks of View and be in full control of its style, placement ect. In other words be able to apply some css. For this use the Theminq Wizard as explained here: http://drupal.org/node/42597
In this explanation it also says (quote) "It generates code for your template.php and a viewname.tpl.php which you can drop right into your theme directory. You can then make adjustments to this"
Following these instructions we then generate the codes - and a stylesheet for the view - and upload in the same directory where the other templates and .css files are placed.
And nothing happens.
The View stays the same
If I do a Page Source on my front page and read the code, I can see that the new .css file does not get included in the header with all the other styles sheets. I suspect that the new viewname.tpl.php file also gets overlooked
How do I get Drupal to read and include the viewname.tpl.php and .css file?
As for the .css file I tried adding it by adding a line like this in my template.php:
drupal_add_css(drupal_get_path('theme', 'THEMENAME') .'/print.css', 'theme', 'print');
(as explained here: http://drupal.org/node/189141 )
Didn't help either. (and I couldn't see the .css getting listed in the code either upon checking it via a 'Page Source' in FF)
( I could perhaps manually add a:
@import "/THE NEW STYLESHEET.css";to the various page template files I use. But I am not in favour of the solder and band-aid approach. )
Bottom line:
How do I get the template files and styles sheets generated by the Theming Wizard to work?
It is as if they don't 'plug in'