Questions tagged [taxonomy-terms]

"Taxonomy" refers to Drupal's content classification mechanism, organised into vocabularies and terms.

Filter by
Sorted by
Tagged with
1
vote
1answer
72 views

Using taxonomy exposed filter in a view ends in MySQL can only use 61 tables in a join

Scenario One hierarchical vocabulary called Countries with 300 taxonomy terms, one for each country, indenting like: America (level 1) Anguila (level 2) Antigua y barbuda (level 2) ... (level 2) ...
0
votes
0answers
26 views

Dependent and multiple selection using taxonomy terms in Drupal 8

I need to create a dependent dropdown with multiple select options using taxonomy terms in Drupal 8. I tried using the SHS module, but it isn't working in Drupal 8. The widget doesn't appear on trying ...
0
votes
0answers
11 views

How can I update view's exposed filters on user selection

I have a view which has to taxonomy filters exposed, lets say "Tax 1" and "Tax 2". The filters are set as selections. Now lets say that the user selects one of the items of Tax 1. Now the content ...
0
votes
1answer
21 views

Sort by taxonomy weight

I have a content type 'Member' with a field referring to taxonomy term called 'Member role' which is a multi value field. Each member may have up to 3 member roles. I have created a view to display ...
0
votes
0answers
23 views

Exposed Taxonomy filter relationship with two levels

I have searched about that but I didn't found any solution for my problem, I also tried to combine different solutions that I found but didn't work. Those solutions were different combinations of ...
0
votes
0answers
15 views

Select multiple terms in filter criteria(non-exposed) in views drupal 8

I have 2 categories 1.primary, 2. other. both have same terms. when I add content type I select a primary category and other category. but article/ content-type is not displayed in other category.my ...
0
votes
0answers
20 views

How can I delete terms without getting this exception?

I tried to clone taxonomies using entity_clone and now I am not able to delete the terms I created. I have tried to edit them and this works fine. The error I am getting when trying to delete is the ...
-1
votes
0answers
39 views

Copy paragraph in database to other taxonomy terms

I have 200+ blank pages generated from taxonomy terms. One of the pages has been completed and it has the paragraph block completed with all the various bits. Is it possible to take this completed ...
0
votes
1answer
25 views

List options without typing on autocomplete

Is it possible to show options when user clicks to the input field instead of showing after typing at least one matching character? Autocomplete starts showing the options after user types one ...
0
votes
2answers
40 views

Is there a way to get a value of a multi value field of an entity reference (reference a field value of a referenced term)?

I hope that maybe someone had a similar use case and has an idea how to solve it: I have content type that has an entity reference field to a vocabulary. With that I would like to achieve it to not ...
2
votes
1answer
45 views

How deal with taxonomy term parameter in multilingue site?

I have a custom controller, who take the tid parameter : /myroute/{tid} The tid is upcast with the taxonomy Term so in my controller method I have: public function index(TaxonomyTerm $tid) In this ...
0
votes
0answers
34 views

Limiting the number of options to be selected based on user role

I have a tag field in article content type. It's a Drupal 8 Project. I want to limit number of tag to be chosen according to role. For example; Role A can choose max 3 tags Role B can choose max 7 ...
0
votes
0answers
20 views

Create View that list all bundles of entity depending a taxonomy

I will try to be as clear as possible. The arborescence looks like that: | Taxonomy_Name | Tax1 | Tax2 | Tax3 | Tax4 | Entity_Name | Bundle1 | Ref to a Taxonomy_Name ...
0
votes
1answer
47 views

Set taxonomy field on node creation [closed]

I have a node type 'blog_entry' that uses a taxonomy reference (tags). The tags are created if they don't already exist, i.e. the reference field uses the option 'Create referenced entities if they ...
1
vote
2answers
62 views

How can I filter child terms in an exposed filter by parent term from contextual filter?

I have a vocabulary of Districts with nested taxonomy terms like below. I have a view of taxonomy terms in Drupal 8 which has an exposed filter of all terms with parent and child. What I want is that ...
0
votes
0answers
25 views

How to render related nodes by vocabulary X on vocabulary Y terms?

I did many research about related nodes by term. These solutions are good with related nodes by term on node pages but does not work on term pages. Solutions I found: Add "Content: Has taxonomy term ...
0
votes
0answers
16 views

Date difference with taxonomy field

I'm using D8 and I have a little problem with calculating age. I have a taxonomy term "Animal". It has a "name" and "date of birth" field. I have a content type "Test Results". It has a "date of ...
0
votes
1answer
22 views

Taxonomy Term View with Expose filter Dropdown of Terms Name

I Have a view of Taxonomy and "not Content". In this View I want a Expose filter of Term Name. But when ever i add Term Name as expose taxonomy's filter it shows text box and not Dropdown. Without ...
0
votes
1answer
10 views

How to create a default image per taxonomy term?

I want to associate a different default image with each taxonomy term. I saw this module - https://www.drupal.org/project/taxonomy_image - but it's in alpha. Anyone got any recommendations how to do ...
1
vote
2answers
107 views

Loading taxonomy terms in a tree in Drupal 8

I have multiple level of vocabulary, I want to display all level in the hierarchy same as taxonomy display. My taxonomy is like. All Drinks Alcohol Drinks Beer Vodka ...
0
votes
3answers
44 views

EntityQuery for taxonomy term of specific bundle

I would like to build a query for all taxonomy terms of a specific bundle. $terms = \Drupal::entityQuery('taxonomy_term') ->condition('type','mail_template') ->execute(); This returns an ...
1
vote
3answers
128 views

Getting “Call to a member function getName() on null” in custom breadcrumb

I'm trying to customize the breadcrumb of drupal 8 to get something like this: Home > category >article-title. I wrote this and I wrote the code below. namespace Drupal\module_demo\Breadcrumb; use ...
1
vote
1answer
34 views

How do I modify the URL to a taxonomy term?

I have a vocabulary called Industry with four terms. I have edited the terms to keep the URL to be automatically generated. They are following this convention: industry/term1, industry/term2, etc... ...
0
votes
0answers
14 views

Sort Search API results by taxonomy reference field name (and not TID)

I have a views index page that when displaying results without a text search I want to display sorted alphabetically by a taxonomy reference fields name. I can get it to sort by this reference field ...
0
votes
0answers
25 views

How to mark the fields of a view shown in a table as already read?

I have a view that displays the results as a table, and also contains an exposed taxonomy filter. I need a way to know when a certain field in a row has a value that has already been "seen". A row ...
1
vote
1answer
29 views

How can I have Devel generate nodes with different terms and not always the same term?

I am using the Devel module to generate content (nodes) as a test. The content type has a field referencing a vocabulary that has terms already added to it. When 1000 nodes are generated, Devel ...
1
vote
1answer
38 views

How to get a taxonomy custom image field URL value

I've created an image 'field_term_preview' field on the taxonomy vocabulary and trying to get this URL in my custom module: $terms =\Drupal::entityTypeManager()->getStorage('taxonomy_term')->...
0
votes
1answer
58 views

Photo gallery with taxonomy filter

It's not easy to explain so I made simple example below. I'm making a gallery in Drupal 8. First I made articles with taxonomy term: animals, forest or people. Some of articles have two or three ...
0
votes
1answer
35 views

Contextual filter using any term ID

I want to set up a view with a contextual filter that will work with any term id (without selecting a specific category). I could only find some old, dated mentions of this. So I'm not sure if this is ...
0
votes
0answers
30 views

Replace taxonomy vocubulary administration page with a view

I would like to replace admin/structure/taxonomy/manage/my_vocabulary/overview with a custom view. Some of my vocabularies have custom fields that I would like to display and use as filter for the ...
0
votes
0answers
54 views

How to display values of certain taxonomy term above the table with the search results list based on content type, related to entering search query?

I made a view which displays a search result list as a table. The searching process works inside one content type using Search API. The system also has to look for between taxonomy terms (name) first ...
0
votes
0answers
5 views

how to replace the old sorted display content in views with newly added content?

I have 5 display of contents in views then in each content type i added taxonomy which contain the order of 1-5.Now if i want to add a content to order 2 it should replace the order 2 with the new ...
0
votes
0answers
11 views

How to rename comment links on a taxonomy page?

I activated the taxonomy view and activated the comment fields (standard view field). And then an ambush. I can’t change the name of the link either in a view or in hooks. Add a comment to the one I ...
1
vote
1answer
37 views

If content type with specific field that is not empty has specific taxonomy term attach library [closed]

I would like to attach a specific library using a taxonomy term to a content type with a specific field that is not empty. The following is not working: function lehigh_preprocess_page(&$...
1
vote
1answer
81 views

How to load a taxonomy term with case-sensitive?

I used this $this->termStorage->loadByProperties(['name' => 'test']); I got two terms: Test, test. I want to get only one: test This is working without case-sensitive: $this->...
0
votes
1answer
42 views

Exclude taxonomy term from view display except its own?

I work on a news publisher site and I need help excluding a taxonomy term from view but still to keep it with its own page. E.g. Our content is organised by theme and region. For one set of articles ...
-2
votes
1answer
25 views

How can I display tags on one line [closed]

How to change the below output of a drupal article Tags display with bootstrap theme To something like this which is displayed in stackoverflow below any questions Is there a ready made module ...
0
votes
1answer
18 views

Have Views based Taxonomy Term page use term description for title

I am using a view to replace the standard Taxonomy Term page (turned on the standard one in Drupal 8.x). I want the Title of the page to be changed from the Name of the term to the Description of the ...
0
votes
1answer
8 views

View block filter by taxonomy term (field)

I am doing some block experiments because I'm new in Drupal and I want to know if I can create a view block to place X(more than one) times in the same page with different results by taxonomy term ...
0
votes
0answers
32 views

Migrate taxonomy terms

I am looking for a way to import Nodes to D8 from a source using Json Api The node is having terms referenced but i cant find a way neither a tutorial to import and then reference thoses terms to the ...
0
votes
0answers
18 views

Webform conditional relationship

I am preaty new on drupal however my issue still remain unsolved since start on drupal. I can easly assign a webform for a content and forms submiting according node information. But I have many ...
1
vote
0answers
18 views

Extending Core classes with the @internal tag

I need to make weights of Taxonomies translatable and only show translations of terms when you change language. To do this I need to override the OverviewTerms class from the Taxonomy module to ...
0
votes
1answer
54 views

Dynamic results label for Views with Taxonomy Filters

I'm using Drupal 8 Views with Better Exposed Filters to filter a custom content type by two custom taxonomy vocabularies. Results are filtered by: Content: Published (=Yes), Content: Content type (...
0
votes
0answers
15 views

Additional uncaught exception thrown while handling exception while creating a view [duplicate]

I am new to drupal, Created a website on drupal8 which has multilingual modules enabled and added one language and translated a content type. Created some views on this content type along with other ...
1
vote
0answers
28 views

Respecting permissions in getStorage('taxonomy_term')?

Edit: I just realized that Taxonomy permissions are not native to Drupal core, they are the result of a module we activated: Permissions by Term. (This will explain why they are not being respected by ...
0
votes
1answer
69 views

Sorting view results using contextual filters on Drupal 8

I created a views that filter nodes according taxonomy terms passed through contextual filters. Node 1: term1, term2, term3 Node 2: term1, term6 Node 3: term1, term7 Everything is working good, ...
0
votes
1answer
26 views

How to display content for a Taxonomy Vocabulary?

I am using Drupal 8. I have a Vocabulary called Fruit which contains terms: Apple Banana Orange I can go to page for term Apple and I can find all the content which was tagged with apple there. I ...
0
votes
0answers
21 views

How to display a set of custom contents in Taxonomy URL?

I am working with Drupal Commerce using core Drupal 8 and the type of data I am using is Product. When I tag a product with a taxonomy term and visit page for that taxonomy term, I don't see anything. ...
0
votes
1answer
34 views

Is there a way to create hierarchical taxonomies checkboxes?

I have an issue where I want to keep sub category inside a parent category. Say, for preferred vehicle I want a checkbox like this in node creation form []Car []Volkswagen []Toyota []Bike []...
0
votes
1answer
16 views

Remove an item from list of taxonomy terms prior to rendering

What is the correct way to remove an item from a list within hook_entity_view or hook_preprocess_node? I am trying to remove a taxonomy term from a list of terms EntityReferenceFieldItemList. I ...