Skip to main content

Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

DivisionByZeroError PHP error

I keep getting the following PHP error on a Drupal 9 site that I'm working on that seems to be initiated by the tags taxonomy. I create an article and if I don't add tags it works fine. If I do add ...
2 votes
3 answers
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 ...
2 votes
2 answers
1k views

How to get child terms based on parent terms between two different taxonomies

I have created two vocabulary Program Topics I want to load the topics based on the program selection. It looks like category and subcategory. I created some program like java, .net, PHP and I ...
2 votes
2 answers
3k views

How to display list of nodes that share the same Parent taxonomy term as current node

I have a vocabulary set up called (for example) "Produce". And it has parent terms like "fruit" and "vegetable". Child terms are like "banana", "apple" and "cucumber", "squash". Whenever I create a ...
3 votes
1 answer
870 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 ...
0 votes
0 answers
16 views

Contextual filters with taxonomy

I have built a normal view with a contextual filter on a taxonomy term: This taxonomy term consists of 6 terms, with four terms the call of the view works without problems and with two terms I get ...
1 vote
1 answer
567 views

How to update taxonomy term of a node using services

I have created a new node using Services 3 module successfully, the code is below { "type":"page", "title":"New test page", "taxonomy": { "tid" :"367928" } } Configuration: Drupal ...
2 votes
2 answers
1k views

How can I apply different templates based on taxonomy hierarchy?

I'm new to Drupal and I don't have extensive knowledge so I'm hoping I can get this question answered. I want the taxonomy pages of lower hierarchy to be displayed differently from the higher by ...
6 votes
3 answers
1k views

How to get a term from the translated term name?

I have a taxonomy term which, translated in Spanish, became Autos Y Motores. Since taxonomy_get_term_by_name() seems to expect an English string, I guess I first need to get the English string from '...
3 votes
2 answers
2k views

Views autocomplete exposed filter

I am using autocomplete exposed filter in views for country/city with depth which is working fine but there are many identical city names. When user types XYZ he sees 2 entries: "XYZ" "XYZ" and has ...
1 vote
1 answer
57 views

Entity Validation API not invoked on saving the taxonomy overview form – misunderstanding or a bug?

I have a Constraint and ContraintValidator to validate a field of taxonomy terms. Its a hierarchical taxonomy called channel with a field field_product. It's required that a channel has the same ...
0 votes
1 answer
655 views

Merge multiple block views to a single jump menu

I want to implement a jump menu with a list of three different vocabulary terms grouped by each vocabulary name. If I make only a single view all the terms are shown correctly but I would like to be ...
1 vote
2 answers
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
1 answer
429 views

Migrate taxonomy with depth

I need to migrate a CSV file of 3000 Taxonomy terms with depth of 5 levels deep. This is a small sample of the CSV comma-separated values file. About Us About Us, Our Programs About Us, Our History, ...
1 vote
2 answers
402 views

Display a block based on the term reference field of the current node

What I'm trying trying to do sounds fairly simple, but I can't get my head around it. I'm having 2 taxonomy vocabularies: machinery and batteries (both created with NAT for all that matters), and 2 ...
2 votes
1 answer
716 views

Taxonomy term name alias in taxonomy term autocomplete

I'd like to have two or more names for one Term-ID in my custom taxonomy dictionary. As for now I've added a custom field and named it "Synonyms". The field can have multiple values. How can I ...
1 vote
1 answer
609 views

Strange Issue with displaying information of the current term

I have built a series of views to build a Drupal Commerce display for products based on the Taxonomy terms of those products. These terms have a hierarchy. There are nearly 40,000 products being ...
1 vote
1 answer
2k 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
2 answers
193 views

Taxonomy term parent widget alternative

I have a huge hierarchical vocabulary of terms and adding a new child to a specific term can be hard using the default multi-value select list widget. Can I use an autocomplete widget or -better- an ...
5 votes
2 answers
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
2 answers
418 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 ...
2 votes
3 answers
956 views

How to hide specific term/field value on the node?

Is there a way to hide a specific taxonomy terms (specific field values) on the node? (not hiding field/vocabulary altogether, just some values). For instance, there is vocabulary "Location" with a ...
0 votes
1 answer
2k 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 ...
0 votes
3 answers
821 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 ...
2 votes
1 answer
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] => ...
0 votes
1 answer
787 views

When adding Content: has taxonomy term id contextual filter to view and check specify validation criteria box, why don't I see validation options?

My request is closest to these two questions: Filter by multiple taxonomies in URL Views contextual filters taxonomy name I have a view which is a page and displays node titles in a table format ...
1 vote
1 answer
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
2 answers
62 views

Which template to override to change the markup of a reference field to taxonomy and how to get term fields values in that template?

I have a node that has a reference field to the taxonomy vocabulary. In the Manage display of the reference field, the Rendered entity format is selected, and the view mode (field_image field display) ...
1 vote
2 answers
3k 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' ...
1 vote
1 answer
396 views

How use views exposed filters with taxonomy and panels

I need some help with the use of contextual and exposed filters with taxonomy terms views using panels. Context: I have a panels taxonomy page overriding drupal default page. In this page I have a ...
1 vote
1 answer
429 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 ...
3 votes
1 answer
1k 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 ...
0 votes
1 answer
451 views

Creating some fields for a taxonomy menu with the active trail CSS classes?

I have a taxonomy vocabulary which I want to use to create some navigation on my site. Terms: Weather Clothes Calendar Sports I want to be able to pull these terms and put them in the navigation of ...
0 votes
1 answer
511 views

Is it possible to disable (or reject) selection of parent terms in taxonomy reference fields at node creation or edit?

for instance, for a particular Vocab. and User Role.. Is it possible to achieve that in code? That parent terms will be rendered only as labels and not checkboxes? Thanks.
1 vote
1 answer
403 views

Customize autocomplete field to show children terms depending on another field

I have a taxonomy with 2 levels City1 -Park1 -Park2 -Park3 City2 -Park4 -Park5 -Park6 In my form, I created a field that links to this taxonomy with an autocomplete widget. I also have a second ...
0 votes
1 answer
864 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
3 answers
2k 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
3 answers
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
1 answer
3k 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() (...
2 votes
1 answer
745 views

How do you correctly filter on taxonomy terms to get all nodes matching term or parent term?

I have a vocabulary (channel) with two levels. An article node can be added to the first or second level (via field_channel). The hierarchy looks like: channel-1 subchannel-1.1 subchannel-1.2 ...
1 vote
1 answer
449 views

How can I create a custom landing page for a specific taxonomy term?

How would I be able to have a customisable page where in it will be a landing page for special taxonomy terms and will display the related articles of a specific taxonomy term. For instance, ...
0 votes
2 answers
844 views

Can I create a link to a taxonomy page?

I have a page that has a single category applied to it, for this example, "Self Help Books". I want to put a place on content type that display a "view all [insert category here]" ...
0 votes
2 answers
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
1 answer
3k 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 ...
0 votes
1 answer
838 views

Migrate multiselect taxonomy values from node with csv

I want to import companies with csv into Drupal 8 with migrate_source_csv module. CSV: company_name,company_categories,company_size "Dummy Name","Category 1";"Category 2","2 people" How to ...
2 votes
3 answers
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
1 answer
895 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 ...
2 votes
1 answer
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 ...
2 votes
2 answers
1k views

How can I show/hide a block on specific taxonomy URLs depending on term depth?

I need to show blocks on different url's. Block1 Should be displayed on: branches/taxonomytermlevel1 But not on branches/taxonomytermlevel1/taxonomytermlevel2 Block2 Should be displayed on ...
3 votes
1 answer
437 views

Taxonomy Term Hierarchy(not programmatically nor content related)

I know there are zillion topics about this, but I just couldn't apply it to my View Block in Drupal 8. On the other hand all these Taxonomy Term Tree creation is based on content related. Here is ...

1
2 3 4 5
73