I'm trying to provide a link that will create display pages reliant on a taxonomy of destinations. I see that a nav automatically includes the taxonomy if the link is to content/taxonomy based on form-submitted content. However, I have 20,000 destinations nested in a taxonomy, and I don't have a specific content display connected to them yet.

Do I need to create a page first? If so, how do I connect that to the taxonomy?

Basically, I want a tab that says "Destinations" that - of course - rolls out the nested selections and then links to a main page that collects blocks of content connected to that destination together.

Thanks,

Jim B.

Comments

VM’s picture

sachinsuryavanshi’s picture

Views are part of Drupal 8 Cowhat-is-viewsre and You will get all information about views on below URL:

Views Module

My bad, please find below URL
what-is-views

ressa’s picture

Jim states that he is using Drupal 7:

Categories: Drupal 7.x
JBtakenote’s picture

How do I use views to create a page that lets me connect it to my "Destinations" taxonomy as an entity reference, so then I can use the repopulate module to pass that term through to blocks of content on that page. And that will automatically include that taxonomy in the navigation when I add the new page to it?

sprite’s picture

What you are trying to create is called a taxonomy traversal view.

You need to create a Views page where the path is /taxonomy/term/%

and there is a contextual filter called:

Content: Has taxonomy term ID (with depth)

The configuration above will enable you to create a single view that automatically generates a landing page of nodes categorized by the taxonomy term in the url (aliases are OK) since the views code will automatically determine and the term ID.

Here is an export of an actual test View that implements this, (although it uses "Content: Has taxonomy term ID" without the depth option):



$view = new view();
$view->name = 'd7dc_alpha_nodes_by_taxo_alpha_term';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'd7dc - alpha nodes by taxo-alpha term';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'd7dc - alpha nodes by taxo-alpha term';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['empty'] = TRUE;
$handler->display->display_options['empty']['area']['content'] = '(test) There aren\'t any nodes for this term. ';
$handler->display->display_options['empty']['area']['format'] = 'full_html';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['type'] = 'text_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
  'trim_length' => '600',
);
/* Field: Content: taxo-alpha */
$handler->display->display_options['fields']['field_taxo_alpha']['id'] = 'field_taxo_alpha';
$handler->display->display_options['fields']['field_taxo_alpha']['table'] = 'field_data_field_taxo_alpha';
$handler->display->display_options['fields']['field_taxo_alpha']['field'] = 'field_taxo_alpha';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Content: Has taxonomy term ID */
$handler->display->display_options['arguments']['tid']['id'] = 'tid';
$handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_index';
$handler->display->display_options['arguments']['tid']['field'] = 'tid';
$handler->display->display_options['arguments']['tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'test_type_alpha' => 'test_type_alpha',
);

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Has taxonomy term ID */
$handler->display->display_options['arguments']['tid']['id'] = 'tid';
$handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_index';
$handler->display->display_options['arguments']['tid']['field'] = 'tid';
$handler->display->display_options['arguments']['tid']['default_action'] = 'default';
$handler->display->display_options['arguments']['tid']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['tid']['title'] = '%1 alpha-nodes';
$handler->display->display_options['arguments']['tid']['default_argument_type'] = 'raw';
$handler->display->display_options['arguments']['tid']['default_argument_options']['index'] = '1';
$handler->display->display_options['arguments']['tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['tid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['path'] = 'taxonomy/term/%';


spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...