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 will be updated, view title will be updated too.

You haven’t to add other arguments via GUI, just this code.

0 Responses to “Set views title dynamically for blocks and pages”



  1. No Comments Yet

Leave a Reply




IE6: Rust in Peace

Blog Stats

  • 105,703 hits
My Bookshelf

Texts double licensed under Creative Commons Attribution - Share Alike license and GNU Free Documentation License. Examples may contain software licensed under GNU General Public License. Images and comments texts aren't necessarily licensed under these terms.