Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
-3
votes
1answer
12 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
28 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
26 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
15 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
5 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
23 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. ...
-1
votes
0answers
28 views

Add new default value to existing content type

I'm currently on the latest version of Drupal 8. I have a content type (News and Articles) which has a field (Category), a taxonomy term reference field. When I first created this content type I added ...
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
38 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
31 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
10 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
40 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
23 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
10 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
22 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
98 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
77 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
35 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
17 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
57 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
27 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
10 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
33 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
55 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
27 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
11 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
61 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
26 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
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
37 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
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 ...
1
vote
0answers
23 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 ...
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
60 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....
2
votes
1answer
79 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:...
0
votes
0answers
37 views

How can I migrate taxonomy data from an outdated site?

I have a site building with an old version of D8. The site can not run up and all I get is a backup sql file. So I'm creating a new D8 site with the latest version, trying to restore the data. When I ...
0
votes
1answer
57 views

Changing the layout of a Taxonomy Term Page

By default my taxonomy term page lists all articles using this term in 2-columns. I would like to change it to a 1-column layout. (1) I have created a custom display layout for the taxonomy group: (2)...
2
votes
1answer
85 views

How can I add a new field from config inside hook_update_N? [duplicate]

I have to add taxonomy by php code. Taxonomy has to got 2 fields. I added new function to test_taxonomy.install, and it seems to work: function taxonomy_update_8805() { $config_path = 'modules/...
-1
votes
1answer
26 views

How do I get the taxonomy term name?

I added a taxonomy field inside a view. I need to show the term name on the page in a grouped way, like this. taxonomy term1 name title1 content1 title2 content2 taxonomy term2 name title1 ...
0
votes
2answers
82 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 ...
1
vote
1answer
20 views

Contextual filter based on base level of taxonomy

I've been trying to get the following working for a couple of hours: I have a views block, it displays a single content type. The content type has a taxonomy field. The taxonomy items are structured ...
1
vote
1answer
75 views

With Commerce Product taxonomy term view, is there a way to have page title set to the translated term title?

The only way to have the taxonomy term name in the title of a taxonomy term Commerce Products view page I've found so far is the example view in the estore theme (I still don't get how tid which ...
0
votes
1answer
29 views

How do I re-create a built-in view?

I duplicated a view before making changes, but it didn't save and I'd changed most of the view settings before I realised I was working on the original. How can I recreate the standard taxonomy view? ...
0
votes
0answers
27 views

Parent terms aren't recognized

I have a term migration with an SQL source (WordPress) but the parent term is not properly set when imported into Drupal. Config: id: wp_terms_my_terms label: WordPress Terms: My Terms migration_group:...
0
votes
1answer
37 views

How to classify a view by letter?

I have tags (taxonomy terms) and created a tags pageview. I want to sort my tags alphabetically and group them by letter of the alphabet. How can I do this? Thank you I want a single page. I don't ...
0
votes
0answers
41 views

If I have 2 same name taxonomy term which is used with nodes. how to set only one instead of both?

I have 2 taxonomy terms with the same name (knight(2) and knight(6)) in my Drupal 8 Project; both terms have been used with nodes. I want to replace knight(6) with knight(2) in all the nodes. I ...
2
votes
1answer
68 views

How to limit the terms of the view to the terms used?

On the product I created a "tags" taxonomy terms field. I have created a hundred "tags". My products use around 10 "tags". I created a pageview of my products with an ...

1
2 3 4 5
71