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
18 views

Displaying a taxonomy term description in the select list

Select lists have a name|value pair structure. In the case of taxonomy tid|term name. In order to make data entry faster, people would like the term name in the select list to include the description. ...
user avatar
  • 1,357
0 votes
0 answers
15 views

Pull value from a node field based on another field

I want to be able to update the value of a field based on taxonomy term. I have a term (location) with a custom field (country) and city with corresponding values in this term. I create a reference ...
user avatar
  • 1
0 votes
1 answer
34 views

How to add parent terms of a taxonomy term?

On my Drupal 9 site, I have an "Article" content type with a taxonomy reference field_tags. This field is configured so that the user can choose the appropriate term from a drop-down list. ...
user avatar
  • 1
0 votes
0 answers
27 views

How do I create a block that displays nodes related to the current page?

I have a taxonomy vocabulary (Tags) with the following terms. term 1 term 2 term 3 term 4 term 5 term 6 term 7 term 8 term 9 term 10 term 11 term 12 term 13 term 14 term 15 term 16 I have an ...
user avatar
  • 11
0 votes
1 answer
36 views

Get all parent term taxonomy id and name of vocabulary

I have a vocabulary (Vehicle) which contains the following taxonomy terms. Maruti Alto Swift Baleno Barazza Hundai I10 I20 Creta Tata Nexon Safari Nano I want to get only the parent taxonomy ...
user avatar
  • 3
0 votes
0 answers
44 views

How to display nodes that belong to the same taxonomy term as the current page?

I created a "Categories" taxonomy vocabulary with the following terms and child terms : - Crypto -- Binance -- Ledger -- Metamask - Geek -- Security -- Apple ... The "tags" ...
user avatar
  • 33
-2 votes
0 answers
15 views

how to render media field in taxonomy-term.twig file? [closed]

I have one media field in taxonomy term and i want to render it in taxonomy-term.html.twig file Can any one solve this
user avatar
0 votes
0 answers
95 views

How do i list all child terms that share the same parent term? But on "child term" page?

Let's say I have the following taxonomy (a 3-level hierarchy). Acura Integra Hatchback 1991 Hatchback 1995 Hatchback 2000 If I am on the last term of this hierarchy, for example Hatchback 1991, ...
user avatar
  • 169
1 vote
1 answer
55 views

How to update taxonomy field with array of terms?

I am having a body like this { "userid": 435, "territories_id":[176,139] } Where userid is the drupal user id. And I need to update field field_user_territory which is a ...
user avatar
  • 437
-1 votes
1 answer
24 views

Unable to add newly created term to the node

I want to add new taxonomy term to group of nodes that have specific terms already. To retrive them I use this function function getNodesByTaxonomyTermIds($termIds){ $termIds = (array) $termIds; ...
user avatar
  • 1
0 votes
1 answer
52 views

Token service not replacing text with term as a token

I'm trying to use the token service to replace a piece of text using a Taxonomy Term. Example: Hi [term:field_first_name], ... The term is getting loaded correctly, but the text is not changing: $...
user avatar
0 votes
1 answer
35 views

Related content by taxonomy term but using a relationship between terms

There are many posts and tutorials for creating views with contextual filters to display content that shares the same taxonomy term, but my requirement is slightly different. I want to create a view ...
user avatar
  • 57
0 votes
0 answers
26 views

"InvalidArgumentException: Field taxonomy_vocabulary_15 is unknown"

I am trying to publish a Related_article_link node, but I get the following exception error. InvalidArgumentException: Field taxonomy_vocabulary_15 is unknown. in Drupal\Core\Entity\ContentEntityBase-...
user avatar
  • 11
0 votes
0 answers
67 views

No link template Error on saving node having field referencing a particular taxonomy vocabulary

I am getting the following error on saving a node. Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template '' found for the 'taxonomy_term' entity type in Drupal\Core\Entity\...
user avatar
  • 804
0 votes
0 answers
45 views

Get term custom field value from referenced entity

I have a node with a taxonomy term reference field. That taxonomy is a list of names can be assigned to the node and it has its own field with an email address in it. I'm trying to create a rule that ...
user avatar
-1 votes
2 answers
59 views

Should I use an entity reference for nodes or taxonomy terms?

I'm dealing with a plant content type that currently contains a paragraph field. The paragraph contains an entity reference to Common name and an Origin text field (with the setting to create if it ...
user avatar
0 votes
0 answers
35 views

Filter by multiple terms of the same vocabulary using JSON API

I am trying to filter a Drupal content type JSONApi feed by multiple terms in the same vocabulary? (E.g. Content which has been tagged with both 'England' & 'Scotland') This thread mentions the ...
user avatar
  • 1
0 votes
0 answers
23 views

How do I filter the release based on the selected product in an exposed filter?

I have a content type (Book page) with reference fields to two taxonomy vocabularies (Product and Release). The fields of that content type are the following. The terms of the Product vocabulary are ...
user avatar
1 vote
0 answers
38 views

I want to create custom taxonomy field module [closed]

What I want to do I want to realize this on Drupal9. Finally,I want to create the custom field on a webform. With this custom field,Submitter who use the webform can add a new taxonomy term to a ...
user avatar
0 votes
0 answers
24 views

Hide active term from the term page

I have an article content type that has a taxonomy reference field that stores the author name. It can hold multiple authors in case the article is authored by more than one author. As per the image ...
user avatar
0 votes
2 answers
116 views

print description and field value directly in taxonomy-term--drzava.html.twig

First I disable view for taxonomy-term, so I can use taxonomy-term--drzava.html.twig, where drzava is name of vocabulary. How to print description and filed value for taxonomy-term directly, without ...
user avatar
0 votes
0 answers
35 views

How can I filter based on unique taxonomy term values?

I have a content type "book". One of its field "field_language" referencing to "language" taxonomy term. field_language can have only one value. Consider this is the ...
user avatar
0 votes
0 answers
32 views

Node coloring by taxonomy

My site has a node and a "tags" taxonomy that contain the color field. One node can have multiple tags, but I need to select one main tag. The color from the main tag must be passed to the ...
user avatar
0 votes
0 answers
21 views

How to use views query alter to show filtered content according to tags

I am new to Drupal and started learning hooks. I am trying to use hook_views_query_alter to show related content to user according to it's preferred tags. function related_content_views_query_alter(...
user avatar
0 votes
0 answers
34 views

Overriding views title with full taxonomy hierarchy

My Situation: I am trying to list my content with a taxonomy hierarchy, building up a views based navigation. To achieve this, I created a second vocabulary for my hierarchy terms (2 layers, mixed), ...
user avatar
  • 1
0 votes
2 answers
50 views

How can I print a single field?

I've got a taxonomy page (https://www.dovericaricare.it/becharge) that I'm trying to customize using a twig template. I don't understand what syntax I should use to print fields like the logo ({{ ...
user avatar
  • 101
0 votes
2 answers
38 views

How do I move a node's tags to be near its author information in my Bartik subtheme

I want to style a node's author data and tags slightly differently to the Bartik theme in Drupal 9.3. That is, rather than: Submitted by user1 on Mon, 1/1/70 Tags foo bar I'd like to have: ...
user avatar
  • 155
1 vote
0 answers
54 views

What is the POST end point for taxonomy?

I have a test script to create (POST) a term for a Tags vocabulary using cUrl. That simple script is working fine on Drupal 8.9.20, but it returns a 404 error on Drupal 9.3.0. {"message":&...
user avatar
  • 11
1 vote
1 answer
36 views

Drag and drop to sort taxonomy weight in a view

I need to create a custom admin view to replace the default taxonomy term listing page for a given vocabulary. The reason is that we have added custom fields on the vocabulary and the admins need to ...
user avatar
  • 345
0 votes
1 answer
17 views

Show taxonomy field in View

I have taxonomy called Hardware Type and it has field Short Code. Now content-type Hardware's has this taxonomy and I have a page which lists all Hardware. I want to show Hardware type's short code ...
user avatar
2 votes
1 answer
41 views

Connect field with Taxonomy Term

I have taxonomy Brand and different fields like RAM, Monitor, 'CPU' under content-type Hardware. While adding a new Hardware how can I add RAM, CPU or other fields with Brands? e.g. RAM = 16 GB, Brand ...
user avatar
0 votes
0 answers
18 views

Display custom taxonomy fields on admin taxonomy listing screen

I have a taxonomy vocabulary called "Document Type" that has a custom field attached to it for "Acronym". When an admin is logged in and goes to Structure>Taxonomy>Document ...
user avatar
  • 345
0 votes
0 answers
40 views

Split a hierarchal taxonomy into multiple facet filters

I'm currently working with an E-Commerce site in Drupal 8 that contains multiple products and multiple specifications set up in a hierarchical taxonomy term called Specifications like this example: ...
user avatar
  • 13
1 vote
0 answers
18 views

Two step entity reference selection

I want to create a two step entity reference selection in Drupal 9. The structure so far: Content Type: Company --> Entity reference: Jobs (multiple) Content Type: Job --> Entity reference: ...
user avatar
0 votes
0 answers
22 views

How to get language prefix in URL for terms without translation?

I have a multilingual website with taxonomy vocabulary, which terms are not translatable (company names). But each term has translated meta tags and paths, depending on the selected site language. For ...
user avatar
  • 79
0 votes
0 answers
32 views

How can I customize each of the taxonomy term pages?

I have a site with Drupal 9. I have created a taxonomy and I want to personalize the terms pages. In Drupal, there is a view for that, but if I change it, I change all the taxonomy term pages. I want ...
user avatar
  • 33
1 vote
1 answer
54 views

How to display the parent taxonomy term of the "Tags" field?

On my Drupal 9 site, I created taxonomy terms in the "tags" vocabulary (the vocabulary and the default field of the "article" content type) : When I create a node, I select a ...
user avatar
  • 33
0 votes
0 answers
26 views

How do I dynamically add filters?

I have a view_block with the following filters, I want to change the product tag, Release tag, Document type values dynamically based on url. if the url is, example.com/mars/21.43.00/ProductGuide, ...
user avatar
0 votes
0 answers
24 views

How to add contextual filter?

I am working with books in drupal 8. I want to display a specific page("table of contenets") on the sidebar whenever any page of that book is accessed. "table of contents" is a ...
user avatar
2 votes
1 answer
123 views

How to create a view that lists all taxonomy terms of a vocabulary, filtered by a term id?

I have a lot of different vocabularies. On The taxonomy page (the standard view provided) I would like to add a block (view) that takes the current taxonomy id from the url/page and displays all ...
user avatar
  • 41
0 votes
1 answer
36 views

Similar content with contextual filter by url [duplicate]

There are two types of content (as an example): fruits vegetables They share the same vocabulary and similar terms. Catalog structure: -Fruits --juices ---for children ---for men ---for women -...
user avatar
  • 1
0 votes
0 answers
70 views

Split taxonomy terms in two facet filters

English is not my first language, so please be patient. I'd like to ask for assistance to split my taxonomy terms in two facet filters. Context: Drupal Core v9.2.6 Acquia Search v3.0.5 Acquia ...
user avatar
  • 103
2 votes
0 answers
97 views

How use subqueues of entityqueue module?

I'm on D9 and already using entityqueue module to let the content editors orders some views via "simple" queues Now, I've been requested to make possible to order the nodes appearing on the ...
user avatar
  • 490
0 votes
1 answer
98 views

How do I create a breadcrumb with the taxonomy terms used by the node?

I created a vocabulary for the nodes. I installed the Easy Breadcrumb module. When a node is tagged, for example, with Crypto and ICO, the breadcrumb should be the following one. Accueil >> ...
user avatar
  • 33
0 votes
0 answers
37 views

Permissions by Term and Drupal Views

I created a content type with a taxonomy. I use the terms of the taxonomy as a category for a handbook to show different categories via views. Now, I have a section of the handbook, which should only ...
user avatar
  • 1
0 votes
1 answer
40 views

How do I programmatically set a content reference by name for a node?

Hi team i have some isssues. I'm creating a node and i would like to set a content reference by name not by id, i'm doing this but this is not working: 'field_content_type_items' is referenced to ...
user avatar
  • 13
-1 votes
1 answer
21 views

How do I list all users in a view that have created a node with certain taxonomy terms?

The goal is to create a view to list users on a page with url /search/[category]/[topic]/[location] where "category" "topic" and "location" are taxonomy fields in nodes ...
user avatar
  • 91
1 vote
1 answer
275 views

How do I allow users to sort articles by tag with the select field?

I have a view page (articles), with a taxonomy term relationship for the tags vocabulary. I have no context filters, and the filter criteria are the following. Published Type: article Taxonomy term (...
user avatar
  • 21
0 votes
0 answers
9 views

The tid is being stripped out of my entity reference autocomplete value when I go to the webform submission edit page

I have a webform with an entity reference to a taxonomy and it's using an autocomplete widget. When I edit a webform submission, the ID is missing from the field and changes can't be saved because the ...
user avatar
0 votes
0 answers
39 views

Using Tac Lite in combination with Paragraphs

For our new Drupal 9 (or 8 if necc.) website we require a very fine controllable access structure where we can give and restrict access on a user by user basis. Not only for a content type but also ...
user avatar
  • 1

1
2 3 4 5
72