Using taxonomy term value as title for the view I created a taxonomy, called Galleries for images on the web site:


Our Rooms
Our Food and wines
Our Services


Then I created a gallery for each of the terms, using views. I wanted to override the title of gallery to the term value, as it is shown in this subform for Contextual filters:



But the id of term is used in the url:

http://hotelcentralpark.ro/gallery/1

http://hotelcentralpark.ro/gallery/2

etc

So, instead of words: "Our Rooms", "Our Food and wines" I get "1" and "2", if I check the box "Override title".

How can I show the value of the term instead of it's id? But keep id in the url.
Try to use the hook_views_pre_render on your view to override the page title

function custom_views_pre_render($view) {
  if ($view-&gt;name == 'your_view_name') {
    // get the $tid from the view's args
    $term = taxonomy_get_term( $view-&gt;args[0] );
    if( $term ){
      drupal_set_title( $term-&gt;name );
    }
  }
}