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
0answers
10 views

How to save contextual filters (taxonomy) used with one content type to another?

I'm quite new to Drupal and I'm building a site where the user will be able to filter content using taxonomy (for example location, price range free/cheap/expensive,etc.). I want this filter to be ...
0
votes
0answers
13 views

Display Block to retrieve information from Order Item's Product Variant and display rating & review inside product page

I am working on an e-commerce website development. I have the conventional Products -> Product Variants which goes through Order and payment gateway workflow. However, there is something different ...
2
votes
1answer
26 views

Pathauto alias full path for hierarchical taxonomy terms

My client has content tagged by a hierarchical taxonomy of arbitrary depth. Currently the maximum depth is three, but that could change: ParentTerm └── ChildTerm └── GrandchildTerm Each Term has ...
-1
votes
1answer
22 views

Taxonomy term relationships

I have 3 taxonomy terms that I would like to expose as filters but I would like to use JavaScript to disable filters as you make selections in the other related exposed filters. For example: Styles ...
1
vote
0answers
31 views

Add an image to a vocabulary

I need to add an image to a vocabulary, not the taxonomy terms. Essentially, I need to add a field to the "Edit Vocabulary" page. Is there a way to do this?
2
votes
1answer
27 views

Taxonomy term save very slow

I have a vocabulary with around 15k+ terms in multi-level hierarchies. Recently I noticed that with this amount of data, when I try to save a term of a higher level (parent to many), it takes a lot of ...
0
votes
0answers
12 views

Drupal 7 taxonomy term fields not handling content filters

Image Resize Filter doesn't work with taxonomy term description. Resizing works fine in nodes and blocks, but not in views for taxonomy term. I'm loading term in my view template. And render its ...
1
vote
0answers
10 views

Geolocation Geometry (Geometry) field cannot be edited in taxonomy term

I have a taxonomy type with Geolocation Geometry (Geometry) field type. I use custom Geolocation Geometry Lat/Lng to WKT widget (but the problem occurs with other widgets too). The problem is that ...
1
vote
0answers
16 views

Cannot view taxonomy terms for one vocabulary

I'm running core 8.9.16 (and have run database updates) and have 24 vocabularies. One is giving me an error when I try to list terms, the others are fine. This seems to have happened when I updated to ...
0
votes
1answer
5 views

LIKE operator to load taxonomy term

I want to retrieve a taxonomy term using this line: $term = $this->entityTypeManager->getStorage('taxonomy_term') ->loadByProperties(['myfield' => 'mytext']); How can I rather use ...
0
votes
1answer
20 views

The view doesn't display products

I've edited the default product type and added a taxonomy term reference field and added some products that reference my product categories. The default taxonomy view isn't display my products, I ...
0
votes
0answers
14 views

Problem with a taxonomy view with Drupal Commerce products with multiple categories

Under Drupal, 9 I've set a Drupal Commerce site where the products can have different categories. For example, having a vocabulary like this: Category A Subcategory A1 Subcategory A2 Category B ...
3
votes
0answers
27 views

Pre-select a checkbox from an exposed filter

I have a view that lists blog articles. The blog content type has a taxonomy reference field to the 'tags' vocabulary, authors can select 1 or multiple tags. The view exposes the 'Has taxonomy terms (...
1
vote
0answers
35 views

Why doesn't breadcrumb work for taxonomy terms?

I have created url patterns for the taxonomy terms in the "Article category" vacabulary. I want the breadcrumb trail to look like this: "Accueil"> "Blog"> "...
0
votes
0answers
26 views

Display products related to a content type through a vocabulary

I have different product variations with a vocabulary (Artist) which is also used for the Artist content type. How can I use a view to show the related products which use a specific value from that ...
0
votes
1answer
39 views

How do I use a term as contextual filter correctly?

I'm using Drupal 8. I have a book content type that uses a vocabulary called "book type" as an entity reference field. I have basic page content type which also uses the the vocabulary "...
-3
votes
1answer
16 views

Attached all images from taxonomy in view

I am creating a view of a content type and content type is linked with you to taxonomy with has images. Now, i have added Relaionship as well. But now if my node is attached to muliple taxmony term it ...
1
vote
0answers
21 views

Parent contextual filter

I'm using drupal 9 for a project with a large taxonomy structure. On the parent page I want to show the child terms of the node. Multiple guides i've found have suggested using the contextual filter ...
0
votes
1answer
29 views

How do I set up an article view that validates both article and category?

I'm working with Drupal 7, and trying to get a view set up that will display blog categories and articles based on their category. The category is a Taxonomy - Blog Categories - let's assume it's: ...
1
vote
0answers
31 views

How can I restrict selectable terms in a term reference field to only show those which have been used earlier by the same user?

I have a node (type = List) with 2 fields, Term Name and Body. Body is a long text type field and Term Name is a entity reference field, which is a drop down with a list of Term in Vocabulary Vocab. ...
2
votes
0answers
21 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
1answer
11 views

alter query view by adding fields in an andGroup within an orGroup

I have a multilanguage site with two languages: English and Dutch. Not all nodes are created in both languages. Some nodes even have no language ('und', 'zxx'). I want the default Drupal provided ...
1
vote
2answers
28 views

Conditional Show/Hide Child Terms on Edit Page

I have a content type with a term reference. The terms have child terms. On the admin editing side, I want to show only top level terms until selected, then show only the child terms for that parent. ...
0
votes
0answers
9 views

How to display content tagged with child terms in views?

I have a taxonomy vocabulary general in which I have a reference field to user roles allowed_roles. I have two taxonomy terms. A and B where A is the parent of B. Now I selected test_role in the A ...
1
vote
0answers
54 views

Facets with 40000+ taxonomy terms make page load slow

I am running Drupal 8.8.1. I have Search API Solr 8.x-2.2 and Facets 8.x-1.3. I have 40,804 taxonomy terms. I added this taxonomy term in my solr index as string. I already have a view page . I added ...
0
votes
1answer
40 views

Create a View Block that shows a taxonomy vocabulary applied to the current node

I have a news section of a Drupal 8 website that contains an ever-growing list of nodes. To avoid a messy menu in the long term, they do not have a menu position assigned but instead are shown via ...
0
votes
0answers
13 views

Unable to use pathauto aliases for taxonomy terms in conjunction with views pages

I'm trying to set up pathauto aliases for a number of vocabularies to work alongside corresponding view pages. However, in doing so, I'm running into a 404s ("The requested page could not be ...
0
votes
0answers
43 views

Alter breadcrumb for the taxonomy term edit page

To ease the navigation in the administration theme I would like the breadcrumb of /taxonomy/term/ID/edit To be : Home | Administration | Structure | Taxonomy | TaxonomyName | TermName | Edit Rather ...
-2
votes
1answer
51 views

Country code in taxonomy shown as flag

I am using ISO 3166-1 alpha-2 codes for countries as a taxonomy in several pages of a given type. When listing those pages in a view, I would like to display the corresponding country flag, rather ...
0
votes
0answers
11 views

How to get a multilevel taxonomy reference field to output as nested UL in node tpl?

I have a simple 2 level taxonomy vocabulary field but I can't seem to find a way to output the terms (labels) in a nested UL in my node TPL. There are no display formatter options at all and I can't ...
1
vote
1answer
24 views

Newbie Taxonomy and Content Question

I'm new to Drupal (having used Perch CMS and PHP for years). Forgive me if I bumble the terminology a bit. I've been furiously going over documentation and tutorials. Sorry in advanced for being ...
0
votes
1answer
45 views

Is there anyway create relationship for filter criteria which has vocabularies( state, city and location)?

list of available Vocabularies in my content type. Country(Term: US) State (Terms: CA , CO, DE.. etc) City (Terms:Fremont, Irwin, Los Angeles, Monument etc..) Location(Terms: All loacations) I'm ...
0
votes
2answers
159 views

Count of nodes filter in views for a taxonomy with depth

sorry for my English. In views, Drupal 8/9, is it possible to have the count of nodes for a taxonomy-term with depth? I would like to have it for the filters in views. I can't find any modules to get ...
0
votes
1answer
139 views

Attempting to merge in an array of items into Twig classes

I have a Twig template where I'd like to merge in an array of items as classes. So far I have this code: {% set classes = [ 'media', 'media--type-' ~ media.bundle()|clean_class, not media....
0
votes
1answer
43 views

How do I manage breadcrumbs when the node uses multiple vocabularies?

I have a blog in Drupal 8 and it uses the Categories vocabulary to display breadcrumbs as Home > Blog > [Category] > Post title. I added taxonomies from the Tags vocabulary, which means every ...
0
votes
0answers
18 views

View List with distinct term listing of multiple nodes

I have a map where multiple nodes are shown as marker (filtered by terms). Now I would like to add a caption (block) which explains the (filtered) marker. The map may contain several results with the ...
0
votes
1answer
88 views

How to get fields definitions of a vocabulary in drupal 8/9? [duplicate]

I needed the field list related a vocabulary item.I was able to list the fields related to a content type by using like this: \Drupal::entityManager()->getFieldDefinitions('node', 'article'); But ...
0
votes
0answers
35 views

Call hook when changing hierarchy in taxonomy terms overview

I created a two-level hierarchy in a taxonomy vocabular and used it in an entity referenced field for a type of content, let's contextualize with an exemple. The hierarchy look like this : Tools 1 ...
0
votes
0answers
12 views

Taxonomy reference with sub-fields data entry

I am working on a Recipe node type which has a taxonomy reference field to my Ingredients taxonomy. The ingredients reference field is set to "Create referenced entities if they don't already ...
0
votes
1answer
48 views

Is it possible to change the Taxonomy Parent Term's select list to be a Hierarchical select list?

The Taxonomy relations > Parent terms select list is lengthy to look through so ideally we'd like a Hierarchical select list. We already use the Client-side hierarchical select module for other ...
1
vote
2answers
58 views

Change the path used by a route dynamically

Taxonomy terms have a canonical path of /taxonomy/term/{taxonomy_term} by default, which displays a View with content tagged with that term. For certain taxonomies I would like to use a different view,...
1
vote
1answer
32 views

How can I replace the hyphens in front of child terms with something else?

What code is responsible for adding - in front of taxonomy term sublevels on a taxonomy field in a node edit form? Even though the most non-intrusive way to override it is preferred, I'm comfortable ...
1
vote
0answers
12 views

Select nodes that share some of the same tags, and sort by tags in common count

I have nodes that can have many tags. I'm able to display nodes that share some of the tags. $query = \Drupal::entityQuery('node'); if ($nodeId != null) { $query->...
0
votes
1answer
68 views

Change page title

I've created a view to display products based on the taxonomy vocabulary Categories. I followed a few how tos and check for answers on drupal.org, here & other websites but none is working. I ...
0
votes
1answer
30 views

Create taxonomy terms [duplicate]

i'm new to drupal (just installed v9) and want to add a bunch of content. like in the question asked years ago (Create taxonomy terms on the fly) i want to add taxonomy terms on the fly while adding ...
0
votes
1answer
23 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
40 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 ...
0
votes
1answer
23 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 ...
1
vote
0answers
26 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 ...
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 ...

1
2 3 4 5
72