diff --git a/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml b/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml index 91da13d..494c3c0 100644 --- a/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml +++ b/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml @@ -60,7 +60,7 @@ display: sorts: sticky: id: sticky - table: node_field_data + table: taxonomy_index field: sticky order: DESC plugin_id: standard @@ -73,7 +73,7 @@ display: provider: views created: id: created - table: node_field_data + table: taxonomy_index field: created order: DESC plugin_id: date @@ -131,18 +131,7 @@ display: reduce_duplicates: false plugin_id: taxonomy_index_tid provider: taxonomy - filters: - status: - id: status - table: node_field_data - field: status - value: true - operator: '=' - group: 0 - expose: - operator: '0' - plugin_id: boolean - provider: views + filters: { } style: type: default options: @@ -243,7 +232,6 @@ label: 'Taxonomy term' module: taxonomy id: taxonomy_term tag: default -uuid: 0bbae939-68a8-496f-bf09-9cc8f6027c63 langcode: en dependencies: module: diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index 2dfa5b2..bdc2f63 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -314,6 +314,31 @@ function taxonomy_views_data() { ), ); + $data['taxonomy_index']['sticky'] = array( + 'title' => t('Sticky status'), + 'help' => t('Whether or not the content related to a term is sticky.'), + 'filter' => array( + 'id' => 'boolean', + 'label' => t('Sticky status'), + 'type' => 'yes-no', + ), + 'sort' => array( + 'id' => 'standard', + 'help' => t('Whether or not the content related to a term is sticky. To list sticky content first, set this to descending.'), + ), + ); + + $data['taxonomy_index']['created'] = array( + 'title' => t('Post date'), + 'help' => t('The date the content related to a term was posted.'), + 'sort' => array( + 'id' => 'date' + ), + 'filter' => array( + 'id' => 'date', + ), + ); + // term_hierarchy table $data['taxonomy_term_hierarchy']['table']['group'] = t('Taxonomy term');