Views and custom dynamic titles for pages set with fields values or anything else

By default you can't set dynamic titles for views other than using contextual filters and using them to change title, this will sometimes help and sometimes you want to use something else, so custom modules/overrides to the rescue. There is also a page title module but you can use tokens with it and seems it doesnt work now. So use one of this 2 hooks and you will have plenty of info to choose from to set your title. You can use field values, or any other part of view and just put it into title. Here are 2 examples I used and both of them work fine.

function custom_views_views_pre_render(&$view) {
  
  if ($view->name =='sales_pitch' && $view->current_display =='page') {
    $view->build_info['title'] = "".$view->build_info['title']."";
  }
    if ($view->name =='recaps' && $view->current_display =='page') {
    $view->build_info['title'] = "Recaps for ". $view->build_info['substitutions']['%1'];
  }
}

function custom_views_preprocess_views_view(&$vars) {
  if ($vars['view']->name == 'recaps') {
      //update your title
      $vars['view']->build_info['title'] = 'Some TITLE';
    }
}