Views: Filter by whether a node is ? Is there a way to filter a view by whether the item is set to &lt;front>? Seems simple but it's not as easy as I'd have guessed.
You can solve above problem using Views PHP module.


  This module allows the admin account (user 1) to add fields, filters
  and sorts to views which use PHP code. It also supports additional
  accounts when the core PHP Filter module is enabled.


All you need to do is create a filter Global PHP and below code in the php filter. It's highly recommended that you include this within a module rather than directly in views. If it breaks it could be difficult to recover from.

function yourmodule_exclude_front($data) {
  if (!empty($data)) {
    $front_url = variable_get('site_frontpage');
    $url_parts = explode("/", $front_url);
    if (($url_parts[0] == 'node') &amp;&amp; ($url_parts[1] == $data-&gt;nid)) {
     return TRUE; //Exclude the node
    }
  }
  return FALSE;
}


Then within your view php filter you would do something like:

 if (module_exists('yourmodule')) {
   return yourmodule_exclude_front($data);
 }


Exported view code below (not including module code from above, but inline code)

$view = new view();
$view-&gt;name = 'front_view_node';
$view-&gt;description = '';
$view-&gt;tag = 'default';
$view-&gt;base_table = 'node';
$view-&gt;human_name = 'Front View Node';
$view-&gt;core = 7;
$view-&gt;api_version = '3.0';
$view-&gt;disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view-&gt;new_display('default', 'Master', 'default');
$handler-&gt;display-&gt;display_options['title'] = 'Front View Node';
$handler-&gt;display-&gt;display_options['use_more_always'] = FALSE;
$handler-&gt;display-&gt;display_options['access']['type'] = 'perm';
$handler-&gt;display-&gt;display_options['cache']['type'] = 'none';
$handler-&gt;display-&gt;display_options['query']['type'] = 'views_query';
$handler-&gt;display-&gt;display_options['exposed_form']['type'] = 'basic';
$handler-&gt;display-&gt;display_options['pager']['type'] = 'full';
$handler-&gt;display-&gt;display_options['pager']['options']['items_per_page'] = '10';
$handler-&gt;display-&gt;display_options['style_plugin'] = 'default';
$handler-&gt;display-&gt;display_options['row_plugin'] = 'node';
/* Field: Content: Title */
$handler-&gt;display-&gt;display_options['fields']['title']['id'] = 'title';
$handler-&gt;display-&gt;display_options['fields']['title']['table'] = 'node';
$handler-&gt;display-&gt;display_options['fields']['title']['field'] = 'title';
$handler-&gt;display-&gt;display_options['fields']['title']['label'] = '';
$handler-&gt;display-&gt;display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler-&gt;display-&gt;display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Sort criterion: Content: Post date */
$handler-&gt;display-&gt;display_options['sorts']['created']['id'] = 'created';
$handler-&gt;display-&gt;display_options['sorts']['created']['table'] = 'node';
$handler-&gt;display-&gt;display_options['sorts']['created']['field'] = 'created';
$handler-&gt;display-&gt;display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler-&gt;display-&gt;display_options['filters']['status']['id'] = 'status';
$handler-&gt;display-&gt;display_options['filters']['status']['table'] = 'node';
$handler-&gt;display-&gt;display_options['filters']['status']['field'] = 'status';
$handler-&gt;display-&gt;display_options['filters']['status']['value'] = 1;
$handler-&gt;display-&gt;display_options['filters']['status']['group'] = 1;
$handler-&gt;display-&gt;display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Global: PHP */
$handler-&gt;display-&gt;display_options['filters']['php']['id'] = 'php';
$handler-&gt;display-&gt;display_options['filters']['php']['table'] = 'views';
$handler-&gt;display-&gt;display_options['filters']['php']['field'] = 'php';
$handler-&gt;display-&gt;display_options['filters']['php']['use_php_setup'] = 0;
$handler-&gt;display-&gt;display_options['filters']['php']['php_filter'] = '$front_url = variable_get(\'site_frontpage\');
$url_parts = explode("/", $front_url);
if ($url_parts[0] == \'node\' &amp;&amp; $url_parts[1] == $data-&gt;nid) {
  return FALSE;
}
else {
  return TRUE;
}';

/* Display: Page */
$handler = $view-&gt;new_display('page', 'Page', 'page');
$handler-&gt;display-&gt;display_options['path'] = 'front-view-node';