Drupal: Theming Views 2
Ein wie ich finde sehr gutes Tutorial zu Views 2 Theming gibt es bei Group 42.
Insbesondere den ” theme information link” habe ich erst kürzlich bemerkt, dabei ist er so hilfreich.
Basic steps for theming a Views 2 view:
- Use the theme information link to determine your template file starting point and naming options
- Copy the default template file from modules/views/theme to your theme directory
- Rename the file with your selected name
- Press rescan to reload the cache and confirm you’ve done the copy/rename correctly
- Read the template file comments and use:
<?php print print_r(array_keys(get_defined_vars()), 1); // Or if you have the developer module installed dsm(array_keys(get_defined_vars())); ?>to find variable names
- Use a views subdirectory in your theme directory to keep your theme files organized

