Tag: views
-
Pair view fields content on a Drupal 7 view quick howto
Valid for: Drupal 7, Views 3. I have two multiple text fields on a Drupal 7 content type. I want to display those fields paired by delta in a view. Here the code I used in my module named mymodule.module. Thanks to hook_views_pre_render(). I use this piece of code to pair Youtube URLs and plain […]
-
Customize exposed filter on Drupal View
Tested on: Drupal 5.x Views 1.6 When you have to filter a view by a content type, you have to use Exposed filters. Since default list is somewhat ugly (a select with some elements and CTRL to be pressed) we transform it in simple checkboxes. Copy and paste this code into your template.php: # I […]
-
Set views title dynamically for blocks and pages
Tested on: Drupal 5.x – Views 1.6 Problem: you want to display a taxonomy term name as view title, for block and themes. Solution: On views edit screen, just add to your Argument > Argument handling code: $args[0] = 3; Where 3 is the Term ID you want to display as name. When term name […]
-
Views Theme Wizard on Zen: it works!
JohnAlbin writes a good tutorial about how to correct Views Theme Wizard on Zen Subthemes. I was looking for this solution some times ago, it’s very useful for views handling.