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
2k views

Search API and Facets API with multilingual taxonomy

I have some taxonomy terms and the settings look like this. All these terms have been translated. After indexing the content with Search API and Facets API, the facets are not shown with translation....
1
vote
2answers
340 views

How to display registration form fields based on the taxonomy term?

I have three taxonomy terms. And I want to display different fields in the registration form based on the taxonomy term. I want something like this. taxonomy term 1: Registration form fields: Name, ...
4
votes
3answers
1k views

Different view page based on taxonomy depth?

I'm wondering if there is a way to show a different view (or view part) based on the current depth of the term level? Example I have a bunch of categories and subcategories. For the categories I want ...
0
votes
2answers
52 views

Hide taxonomy term from a view filter where the filter results are empty

I have several nodes and several taxonomies, but only some nodes have taxonomy relationships. My problem is that the taxonomy filter shows those terms too which don't have any node relationships at ...
2
votes
1answer
1k views

Alter Exposed filter form

I would like to know how to get parent terms only, for example "Ages 0-2" and also print in dropdown. This is the structure of the form array. Array( [#info] => Array( [filter-tid] => ...
2
votes
2answers
1k views

set multiple taxonomy values programmatically

I have a view that has a "Has taxonomy term ID" contextual filter and also a nid contextual filter. I execute this view programmatically, but I need to pass also multiple values for the taxonomy ...
1
vote
2answers
2k views

How to do “has term (with depth)” filter on field of a related field

i have a content type 'product', and two taxonomy lists 'company' and 'country'. Country list has one level of depth like: ........ state1 -city1 -city2 ........ Each product has a 'company' ...
0
votes
1answer
965 views

How to organize categories and subcategories of products in menus?

I have product content type that I want to display in a menu. Every product belongs to subcategory that belongs to main category, for example: Computers: PC: - product 1 - product 2 ...
0
votes
1answer
20 views

View Taxonomy Term List with Exposed Has taxonomy terms (with depth) filter

I have view list of terms of a vocabulary. The terms of it have an entity reference field of another vocabulary (with hierarchically organized terms). I would like to filter the terms by that entity ...
0
votes
3answers
754 views

copy term reference from one to other field

I have two fields (fieldtype = term reference) in the same content type and I would like to copy the settings from the first to the second one. After searching for a solution I found this thread but I ...
0
votes
1answer
21 views

How to filter content by a specific taxonomy term when vocabulary allows multiple values?

I have defined a vocabulary that allows multiple terms to be checked for a Content Type and I would like to create a View that could gather all the data from that Content Type but grouping the results ...
0
votes
2answers
36 views

How to filter my view of Groups to show results matching Term A or Term B

I am adding taxonomy terms to groups (using the group module) and want to use the terms to filter groups within a view. However, my exposed filters don't seem to work. There is no error, but the ...
1
vote
2answers
379 views

Taxonomy Alphabetical Sorting - Nested or Multi-Level Terms

I have a problem with the taxonomy list. Currently my website's taxonomy is unsorted, and I want to do an alphabetical sort. It is also a multi-level nested list (3 levels). I heard that using 'Reset ...
1
vote
1answer
2k views

How to retrieve a select box option and set the field's value to it?

I have a a taxonomy term select box (called "product_keyword") in a node that gets its options populated via the Reference Field Option Limit module. There are 3 other taxonomy term reference fields ...
2
votes
3answers
7k views

How to improve search results filtering on taxonomy

I would like to know the best way to filter drupal search results using taxonomy. I want users to be able to search for particular results from a particular taxonomy..this can be done to refine ...
1
vote
3answers
407 views

Allow role to edit node with same taxonomy term

I would like to allow a user to edit some node that have the same taxonomy term. I created a taxonomy for enterprise and I referenced it in a field of user profile. I used this taxonomy in a content ...
1
vote
3answers
708 views

Get URLs of taxonomies terms in Link field

I am having a link field in drupal 8. It can accept both internal and external links with autocomplete feature. But it works only with nodes means with content but i want to use it with taxonomy terms ...
2
votes
1answer
5k views

“Taxonomy with depth” view

I have a taxonomy tree like this: balls basketball color red green volleyball color red green If a Taxonomy term has children, I want to show them; if there aren't children I want to show the ...
1
vote
0answers
21 views

How do I migrate relationships from json_api source?

I'm trying to merge content from two D8 sites, using the migration api and json_api as a source. There are terms that have been migrated so I'm trying to migrate the relationships Source data looks ...
3
votes
1answer
1k views

Menu Block: Expand all children of this tree - ignored?

Is anybody using Taxonomy Menu + Menu Block? I have a problem setting Expand all children of this tree, in that it seems to be completely ignored. My sidebar taxonomy menu lists all children expanded, ...
3
votes
1answer
767 views

How to show translated taxonomy terms in term listing in content listing style

I have question about translation of taxonomy terms in Drupal 8. Let's assume this configuration: New created vocabulary, vocabulary language - not specified, terms language - not specified, show ...
3
votes
5answers
5k views

How to delete all Taxonomy terms of particular vocabulary using entity_delete_multiple?

I want to delete all taxonomy terms of particular vocabulary using entity_delete_multiple. For node it is working fine $result = \Drupal::entityQuery('node') ->condition('type', 'page') ...
0
votes
1answer
1k views

Views exposed filter for children terms when on parent term page

I have created a views with multiple exposed filters and I need another filter that is based on taxonomy. My taxonomy structure is: term 1 child 1.1 child 1.2 term 2 child 2.1 child 2.2 What I ...
2
votes
3answers
2k views

Looking for something similar to “Views selective filters”, just with “inactive” instead of “removed”

The Views Selective Filter module reduces the filter items in a views exposed filter to only those having actually results. I'm searching something similar, but I don't want to hide the options with ...
1
vote
1answer
1k views

Inline Entity Form validation

Created a content type and add taxonomy form in it using Inline entity Form module. So, the rendered taxonomy add term looks like : What I want to do is ADD CUSTOM VALIDATION to the "NAME" field. I ...
0
votes
1answer
2k views

EntityMalformedException: Missing bundle property on entity of type taxonomy_term

I have strange behavior that when i visit www.mysite.com/taxonomy/term/516/sdfsdf i get EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (...
1
vote
3answers
2k views

Contextual filters in taxonomy term ID (with depth)

I need to make a view that will show me the nodes of a content type inside a node of another content type filtered by a taxonomy term. I have three content types. The first one is Projects, in which ...
2
votes
2answers
1k views

Hierarchical select hook form alter

I have a problem with getting my module_form_alter to work for hierarchical select. I am running on Drupal 7 and my content type is called mytemp and I'm pretty sure my form-id is mytemp_node_form. I ...
0
votes
1answer
987 views

Pathauto insert taxonomy term custom url

I have change the url of an taxonomy term. Now when i use a field with taxonomy term the url is showing like this: [node:field-taxonomy:parents:join-path]/[node:field-taxonomy:name]/[node:title] ...
1
vote
1answer
395 views

Categories and brands

I have a product catalog that I would like to categorise into different categories (and subcategories). I would also like to have a grouping of the products by brands (which of course are orthogonal ...
1
vote
1answer
52 views

Reuse fields programmatically

Conceptually and for performance purposes it is advisable to reuse existing fields in Drupal. This is very easy to do manually, but my question is, how can I do this programmatically? I have the ...
0
votes
2answers
1k views

Display images of a specific content type in a lightbox when vocabulary is clicked

Background I am using Drupal 7 and I have a taxonomy "Kitchen Type" and content type "Kitchen Picture" having default field_image for images. There are three Kitchen Types Traditional, Contemporary ...
1
vote
1answer
862 views

Term translations not working as View's path contextual filter

Let's say you have a taxonomy called Animals and you have terms like Dog, Cat, Horse, etc. Every term has its translation, so for example for dogs you have Hund and Chien. Now you want to make a View ...
0
votes
3answers
2k views

Product category filter on the /products page

I've been looking for a while but I can not seem to find the correct way to tackle the following problem. On my products page, where all the products are, I have the standard drupal commerce ...
0
votes
3answers
1k views

How to get vocabularies for an entity reference to a taxonomy?

So I'm having a bit of a difficult time finding out how to get the information I want. I have an entity reference field - call it field_event_type. This is an entity reference to a taxonomy. I am ...
3
votes
1answer
861 views

Taxomony menu - show all, vocabulary link are disabled

I have a custom vocabulary which looks something like this: Shops (vocabulary name) Sporting Goods Auto Parts Computers Etc. (15 items in total, 1 level) My goal is to create a menu link to Shops ...
2
votes
1answer
66 views

How do I generate taxonomy terms with drush 10/drupal 9.1.x [closed]

I'm trying to use drush to generate some taxonomy terms for a sandbox/development instance. This might be an error report by I'm a drush noob so I wanted to ask first. When I run drush devel-generate:...
2
votes
0answers
35 views

How do I get a view to list nodes that have the same detail in a particular field as the current node?

Using D8, I'm putting together a genealogy site for my family and having a hard time creating a block that lists the brothers and sisters of the Person being displayed. The basic unit of the site is ...
0
votes
1answer
51 views

How are better exposed filters - checkboxes value - assigned

I have been wrestling with this for a number of days. I apologize if this has been asked elsewhere, I am not able to find the fix, or maybe I am just not thinking in an incorrect way to make this work....
0
votes
1answer
466 views

Is it possible to pass parameters in a taxonomy term's aliased URL using clean URLs?

I am trying to pass URL parameters and access them in a preprocess function. I have done a fair amount of research but did not find an answer. It works if I do the following /example?id=1, but that's ...
1
vote
2answers
2k views

Taxonomy term node count with depth

I want to achieve the following term listing: clothing (17) dresses (2) skirts (3) tops (12) accessories (5) bags (1) jewelery (4) necklaces (2) rings (2) Is this possible with views? I know you ...
4
votes
1answer
1k views

How to set a default value for Simple hierarchical select?

I tried to implement hook_form_alter in order to pass default value to Simple hierarhical select views exposed filter. function mymodule_form_alter(&$form, &$form_state, $form_id) { $tid = ...
4
votes
2answers
4k views

How to translate taxonomy terms displayed via an exposed filter in views?

I'm using the Views, i18nviews, and Entity Translation modules. All of my terms have already been translated using Entity Translation. In views displays, the translated terms appear in the correct ...
1
vote
1answer
377 views

Upload Data From Excel Sheet to taxonomy

I have 4 Excel sheets like: First (35) Records: State Code | State Name Second (650) Records: State Code | District Code | District Name Third (6500) Records: State Code | District Code | Block ...
0
votes
1answer
595 views

How to fix error Undefined index: parent in taxonomy_form_term_submit()?

I got below error on my site recently. Notice: Undefined index: parent in taxonomy_form_term_submit() (line 829 of /var/www/Sites/xxxxx/modules/taxonomy/taxonomy.admin.inc). I google it and find ...
4
votes
2answers
2k views

Give a role permission to add and edit their terms in a taxonomy

In Drupal 7 I am trying to give users the ability to add terms to a taxonomy and then edit only the terms they have created. I'm using the Taxonomy access fix module to give users permission to add ...
0
votes
1answer
348 views

Managed to delete Event_Calendar_Status and cannot reinstate

When trying to get rid of notification emails every time I create a calendar event, I have managed to delete the ?built-in? event calendar status term. I have tried to reinstate it but machine will ...
0
votes
2answers
2k views

creating child terms from a parent using fields

For a project i would like to achieve the following: Using 2 fields in a content type field_parent = reference to term This field references to vocabulary 'parent terms' I have a second field ...
0
votes
2answers
68 views

Categorized view for an entity reference content

I am trying to implement a Magazine in Drupal 9. I am confused about whether to use taxonomy term or content type since the data I want to handle is used for both categorizations and storing of ...
2
votes
1answer
351 views

How to display nodes based on the taxonomy terms of the current logged in user, with multiple vocabularies?

Say I have 3 taxonomy vocabularies: Products, Professions and Support Each vocabulary has 2 terms: Products -> product1, product2 Professions -> profession1, profession2 Support -> support1, ...

1 2 3
4
5
71