Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm starting with Drupal 7 and Views 3, and I want to learn how to modify the templates of my own views. This sentence in the Views project page worries me since I cannot use Views 2 with Drupal 7:

Views 3 documentation hasn't been written yet.

Is there a good non-official tutorial of Views theming? I've found the screen casts at nodeone but no one about theming yet. If theming in Views 3 is similar, can I use the documentation of Views 2?

share|improve this question

1 Answer

up vote 3 down vote accepted

The only big difference in theming Views 2 and Views 3 is the changes that has been made in the theming system. Most of this wont effect you theming views though.

Usually what you want to do is to alter a template or using a preprocess function to add some custom logic or template variable. Preprocess functions is more or less the same in Drupal 6 and 7 and so is template overriding. Views has theming information (under advanced to the right) which will tell you about which templates are used. This is a great tool to figure out what you need to override.

The rest should be standard CSS which I'm sure you can handle already.

share|improve this answer
1  
Theme_developer doesn't play nicely with views3 yet, which can make theming a bit more difficult. But the template information is still shown by views admin to show which templates can be overridden. – Jeremy French May 9 '11 at 15:59
Thanks! I'm starting to learn how to override tpl files, then a bit of css and make wonders. Theming information is golden indeed – mikyatope May 10 '11 at 10:55
at the end, only with css I did the trick! thanks again! aelasoca.cat/web – mikyatope May 11 '11 at 12:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.