Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have a problem with the view "taxonomy terms". The description of my words will appear on Google. Instead I "A view to emulate Drupal core's handling of taxonomy/term.".
$view = new view();
$view->name = 'taxonomy_term';
$view->description = 'A view to emulate Drupal core\'s handling of taxonomy/term.';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Taxonomy 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['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'plus';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'time';
$handler->display->display_options['cache']['results_lifespan'] = '3600';
$handler->display->display_options['cache']['results_lifespan_custom'] = '0';
$handler->display->display_options['cache']['output_lifespan'] = '3600';
$handler->display->display_options['cache']['output_lifespan_custom'] = '0';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['row_class'] = 'views-row-page col-xs-6 col-sm-6 col-md-4 col-lg-3';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['hide_empty'] = TRUE;
/* Relation: Contenu : Referenced products */
$handler->display->display_options['relationships']['field_produit_product_id']['id'] = 'field_produit_product_id';
$handler->display->display_options['relationships']['field_produit_product_id']['table'] = 'field_data_field_produit';
$handler->display->display_options['relationships']['field_produit_product_id']['field'] = 'field_produit_product_id';
/* Champ: Champ : Image */
$handler->display->display_options['fields']['field_image']['id'] = 'field_image';
$handler->display->display_options['fields']['field_image']['table'] = 'field_data_field_image';
$handler->display->display_options['fields']['field_image']['field'] = 'field_image';
$handler->display->display_options['fields']['field_image']['label'] = '';
$handler->display->display_options['fields']['field_image']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_image']['settings'] = array(
'image_style' => 'medium',
'image_link' => 'content',
'field_multiple_limit' => '1',
'field_multiple_limit_offset' => '0',
);
$handler->display->display_options['fields']['field_image']['delta_limit'] = '1';
$handler->display->display_options['fields']['field_image']['delta_offset'] = '0';
/* Champ: Contenu : Titre */
$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']['element_type'] = 'h2';
$handler->display->display_options['fields']['title']['element_class'] = '.views-teaser-title';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Champ: Commerce Product : Prix */
$handler->display->display_options['fields']['commerce_price']['id'] = 'commerce_price';
$handler->display->display_options['fields']['commerce_price']['table'] = 'field_data_commerce_price';
$handler->display->display_options['fields']['commerce_price']['field'] = 'commerce_price';
$handler->display->display_options['fields']['commerce_price']['relationship'] = 'field_produit_product_id';
$handler->display->display_options['fields']['commerce_price']['label'] = '';
$handler->display->display_options['fields']['commerce_price']['element_class'] = '.field-name-commerce-price';
$handler->display->display_options['fields']['commerce_price']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['commerce_price']['click_sort_column'] = 'amount';
$handler->display->display_options['fields']['commerce_price']['settings'] = array(
'calculation' => '0',
);
/* Champ: Contenu : Corps */
$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_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '600',
);
/* Critère de tri: Contenu : Épinglé (en haut des listes) */
$handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
$handler->display->display_options['sorts']['sticky']['table'] = 'node';
$handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
$handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
/* Critère de tri: Contenu : Date de publication */
$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';
/* Filtre contextuel: Contenu : Possède l'identifiant de terme de taxonomie (avec profondeur) */
$handler->display->display_options['arguments']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
$handler->display->display_options['arguments']['term_node_tid_depth']['table'] = 'node';
$handler->display->display_options['arguments']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
$handler->display->display_options['arguments']['term_node_tid_depth']['default_action'] = 'not found';
$handler->display->display_options['arguments']['term_node_tid_depth']['exception']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['term_node_tid_depth']['exception']['title'] = 'Tout';
$handler->display->display_options['arguments']['term_node_tid_depth']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['term_node_tid_depth']['title'] = '%1';
$handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['term_node_tid_depth']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['term_node_tid_depth']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['term_node_tid_depth']['validate']['type'] = 'taxonomy_term';
$handler->display->display_options['arguments']['term_node_tid_depth']['depth'] = '0';
$handler->display->display_options['arguments']['term_node_tid_depth']['break_phrase'] = TRUE;
/* Filtre contextuel: Contenu : Possède l'identifiant du terme de taxonomie avec modification de profondeur */
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['id'] = 'term_node_tid_depth_modifier';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['table'] = 'node';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['field'] = 'term_node_tid_depth_modifier';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['exception']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['exception']['title'] = 'Tout';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['term_node_tid_depth_modifier']['specify_validation'] = TRUE;
/* Critère de filtrage: Contenu : Publié ou admin */
$handler->display->display_options['filters']['status_extra']['id'] = 'status_extra';
$handler->display->display_options['filters']['status_extra']['table'] = 'node';
$handler->display->display_options['filters']['status_extra']['field'] = 'status_extra';
$handler->display->display_options['filters']['status_extra']['group'] = 0;
$handler->display->display_options['filters']['status_extra']['expose']['operator'] = FALSE;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['metatags'] = array(
'und' => array(
'title' => array(
'value' => '[view:title] | [site:name]',
'default' => '[view:title] | [site:name]',
),
'description' => array(
'value' => '[view:description]',
'default' => '[view:description]',
),
'abstract' => array(
'value' => '',
'default' => '',
),
'keywords' => array(
'value' => '',
'default' => '',
),
'robots' => array(
'value' => array(
'index' => 'index',
'follow' => 'follow',
'noindex' => 0,
'nofollow' => 0,
'noarchive' => 0,
'nosnippet' => 0,
'noodp' => 0,
'noydir' => 0,
'noimageindex' => 0,
'notranslate' => 0,
),
'default' => array(
'index' => 'index',
'follow' => 'follow',
'noindex' => 0,
'nofollow' => 0,
'noarchive' => 0,
'nosnippet' => 0,
'noodp' => 0,
'noydir' => 0,
'noimageindex' => 0,
'notranslate' => 0,
),
),
'news_keywords' => array(
'value' => '',
'default' => '',
),
'standout' => array(
'value' => '',
'default' => '',
),
'rating' => array(
'value' => '',
'default' => '',
),
'referrer' => array(
'value' => '',
'default' => '',
),
'rights' => array(
'value' => '',
'default' => '',
),
'image_src' => array(
'value' => '',
'default' => '',
),
'canonical' => array(
'value' => '[view:url]',
'default' => '[view:url]',
),
'shortlink' => array(
'value' => '[current-page:url:unaliased]',
'default' => '[current-page:url:unaliased]',
),
'publisher' => array(
'value' => '',
'default' => '',
),
'author' => array(
'value' => '',
'default' => '',
),
'original-source' => array(
'value' => '',
'default' => '',
),
'prev' => array(
'value' => '',
'default' => '',
),
'next' => array(
'value' => '',
'default' => '',
),
'revisit-after' => array(
'value' => '',
'period' => '',
'default' => '',
),
'content-language' => array(
'value' => 'fr',
'default' => 'fr',
),
'geo.position' => array(
'value' => '',
'default' => '',
),
'geo.placename' => array(
'value' => '',
'default' => '',
),
'geo.region' => array(
'value' => '',
'default' => '',
),
'icbm' => array(
'value' => '',
'default' => '',
),
'refresh' => array(
'value' => '',
'default' => '',
),
'itemtype' => array(
'value' => '',
'default' => '',
),
'itemprop:name' => array(
'value' => '',
'default' => '',
),
'itemprop:description' => array(
'value' => '',
'default' => '',
),
'itemprop:image' => array(
'value' => '',
'default' => '',
),
'og:type' => array(
'value' => '',
'default' => '',
),
'og:url' => array(
'value' => '',
'default' => '',
),
'og:title' => array(
'value' => '',
'default' => '',
),
'og:determiner' => array(
'value' => '',
'default' => '',
),
'og:description' => array(
'value' => '',
'default' => '',
),
'og:updated_time' => array(
'value' => '',
'default' => '',
),
'og:see_also' => array(
'value' => '',
'default' => '',
),
'og:image' => array(
'value' => '',
'default' => '',
),
'og:image:url' => array(
'value' => '',
'default' => '',
),
'og:image:secure_url' => array(
'value' => '',
'default' => '',
),
'og:image:type' => array(
'value' => '',
'default' => '',
),
'og:image:width' => array(
'value' => '',
'default' => '',
),
'og:image:height' => array(
'value' => '',
'default' => '',
),
'og:latitude' => array(
'value' => '',
'default' => '',
),
'og:longitude' => array(
'value' => '',
'default' => '',
),
'og:street_address' => array(
'value' => '',
'default' => '',
),
'og:locality' => array(
'value' => '',
'default' => '',
),
'og:region' => array(
'value' => '',
'default' => '',
),
'og:postal_code' => array(
'value' => '',
'default' => '',
),
'og:country_name' => array(
'value' => '',
'default' => '',
),
'og:email' => array(
'value' => '',
'default' => '',
),
'og:phone_number' => array(
'value' => '',
'default' => '',
),
'og:fax_number' => array(
'value' => '',
'default' => '',
),
'og:locale' => array(
'value' => '',
'default' => '',
),
'og:locale:alternate' => array(
'value' => '',
'default' => '',
),
'article:author' => array(
'value' => '',
'default' => '',
),
'article:publisher' => array(
'value' => '',
'default' => '',
),
'article:section' => array(
'value' => '',
'default' => '',
),
'article:tag' => array(
'value' => '',
'default' => '',
),
'article:published_time' => array(
'value' => '',
'default' => '',
),
'article:modified_time' => array(
'value' => '',
'default' => '',
),
'article:expiration_time' => array(
'value' => '',
'default' => '',
),
'profile:first_name' => array(
'value' => '',
'default' => '',
),
'profile:last_name' => array(
'value' => '',
'default' => '',
),
'profile:username' => array(
'value' => '',
'default' => '',
),
'profile:gender' => array(
'value' => '',
'default' => '',
),
'og:audio' => array(
'value' => '',
'default' => '',
),
'og:audio:secure_url' => array(
'value' => '',
'default' => '',
),
'og:audio:type' => array(
'value' => '',
'default' => '',
),
'book:author' => array(
'value' => '',
'default' => '',
),
'book:isbn' => array(
'value' => '',
'default' => '',
),
'book:release_date' => array(
'value' => '',
'default' => '',
),
'book:tag' => array(
'value' => '',
'default' => '',
),
'og:video' => array(
'value' => '',
'default' => '',
),
'og:video:secure_url' => array(
'value' => '',
'default' => '',
),
'og:video:width' => array(
'value' => '',
'default' => '',
),
'og:video:height' => array(
'value' => '',
'default' => '',
),
'og:video:type' => array(
'value' => '',
'default' => '',
),
'video:actor' => array(
'value' => '',
'default' => '',
),
'video:actor:role' => array(
'value' => '',
'default' => '',
),
'video:director' => array(
'value' => '',
'default' => '',
),
'video:writer' => array(
'value' => '',
'default' => '',
),
'video:duration' => array(
'value' => '',
'default' => '',
),
'video:release_date' => array(
'value' => '',
'default' => '',
),
'video:tag' => array(
'value' => '',
'default' => '',
),
'video:series' => array(
'value' => '',
'default' => '',
),
'twitter:card' => array(
'value' => '',
'default' => '',
),
'twitter:creator' => array(
'value' => '',
'default' => '',
),
'twitter:creator:id' => array(
'value' => '',
'default' => '',
),
'twitter:url' => array(
'value' => '',
'default' => '',
),
'twitter:title' => array(
'value' => '',
'default' => '',
),
'twitter:description' => array(
'value' => '',
'default' => '',
),
'twitter:image:src' => array(
'value' => '',
'default' => '',
),
'twitter:image:width' => array(
'value' => '',
'default' => '',
),
'twitter:image:height' => array(
'value' => '',
'default' => '',
),
'twitter:image0' => array(
'value' => '',
'default' => '',
),
'twitter:image1' => array(
'value' => '',
'default' => '',
),
'twitter:image2' => array(
'value' => '',
'default' => '',
),
'twitter:image3' => array(
'value' => '',
'default' => '',
),
'twitter:player' => array(
'value' => '',
'default' => '',
),
'twitter:player:width' => array(
'value' => '',
'default' => '',
),
'twitter:player:height' => array(
'value' => '',
'default' => '',
),
'twitter:player:stream' => array(
'value' => '',
'default' => '',
),
'twitter:player:stream:content_type' => array(
'value' => '',
'default' => '',
),
'twitter:app:country' => array(
'value' => '',
'default' => '',
),
'twitter:app:name:iphone' => array(
'value' => '',
'default' => '',
),
'twitter:app:id:iphone' => array(
'value' => '',
'default' => '',
),
'twitter:app:url:iphone' => array(
'value' => '',
'default' => '',
),
'twitter:app:name:ipad' => array(
'value' => '',
'default' => '',
),
'twitter:app:id:ipad' => array(
'value' => '',
'default' => '',
),
'twitter:app:url:ipad' => array(
'value' => '',
'default' => '',
),
'twitter:app:name:googleplay' => array(
'value' => '',
'default' => '',
),
'twitter:app:id:googleplay' => array(
'value' => '',
'default' => '',
),
'twitter:app:url:googleplay' => array(
'value' => '',
'default' => '',
),
'twitter:label1' => array(
'value' => '',
'default' => '',
),
'twitter:data1' => array(
'value' => '',
'default' => '',
),
'twitter:label2' => array(
'value' => '',
'default' => '',
),
'twitter:data2' => array(
'value' => '',
'default' => '',
),
),
);
$handler->display->display_options['path'] = 'taxonomy/term/%';
/* Display: Feed */
$handler = $view->new_display('feed', 'Feed', 'feed');
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = 15;
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Éléments par page';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tout -';
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Décalage';
$handler->display->display_options['pager']['options']['tags']['first'] = '« premier';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
$handler->display->display_options['style_plugin'] = 'rss';
$handler->display->display_options['row_plugin'] = 'node_rss';
$handler->display->display_options['path'] = 'taxonomy/term/%/%/feed';
$handler->display->display_options['displays'] = array(
'page' => 'page',
'default' => 0,
);
$translatables['taxonomy_term'] = array(
t('Master'),
t('plus'),
t('Appliquer'),
t('Réinitialiser'),
t('Trier par'),
t('Asc'),
t('Desc'),
t('Products referenced by field_produit'),
t('Tout'),
t('%1'),
t('Page'),
t('Feed'),
t('Éléments par page'),
t('- Tout -'),
t('Décalage'),
t('« premier'),
t('‹ précédent'),
t('suivant ›'),
t('dernier »'),
);
Comment | File | Size | Author |
---|---|---|---|
description.jpg | 208.57 KB | zenimagine | |
Taxonomy term views.jpg | 223.57 KB | zenimagine | |
Taxonomy term google.jpg | 211.56 KB | zenimagine |
Comments
Comment #2
DamienMcKennaThat's because you've enabled the Metatag:Views module and it's setting the description tag to [view:description], i.e. this is by design. What are you expecting to see?
FYI I noticed there's a bug in how the meta tags are saved in VIews, so I opened #2636856: Don't save default values in Metatag:Views.
Comment #3
DamienMcKennaChanging this to a support request until we can confirm there's a bug here.
Comment #4
zenimagine CreditAttribution: zenimagine commentedNow it works thank you
Comment #5
DamienMcKennaIf it isn't working the way you're hoping for, please let me know and I'll see if I can help you out.