Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [taxonomy-terms]

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

-2
votes
0answers
15 views

Drupal Migrate Import error [on hold]

SQLSTATE[HY000]: General error: 1366 Incorrect integer value: [error] 'Biography ' for column 'tid' at row 1: INSERT INTO {taxonomy_index} (nid, tid, status, sticky, created) VALUES (:...
0
votes
0answers
12 views

Making a view that shows pages for multiple taxonomy vocabularies

In Drupal 8, I'm trying to figure out how to use contextual filters in Views to make the following view. I have two taxonomy vocabularies. Fruits Apples Oranges Grapes Info Where they were grown (...
-1
votes
0answers
12 views

Merging taxonomy fields within the theme

I'm wanting to merge taxonomy_term/4/field_hero_image/en/full and taxonomy_term/4/field_field_hero_mobile_image/en/full together so they are not separate, ideally so they don't have duplicated child ...
1
vote
1answer
13 views

Problem with Unorganized content on page

So I am not familiar with Drupal at all and need help. I am a graphic designer and trying to change the order of the layout on one of my pages. We had a developer design and organize our site but she ...
0
votes
0answers
8 views

How to translate vocabulary name?

Drupal 8 installation in English, German lang was added and set as default, vocabularies are set to English (no result even they are in German too), terms are set to German by default, Content ...
0
votes
1answer
19 views

How to display custom fields of taxonomy in field twig

In my content type for Event, I have an entity reference called Speakers which refers to a taxonomy called Team Members. It's set to multiple so I can say which speakers belong to my event. On ...
0
votes
3answers
20 views

View listing related nodes by taxonomy term

I have a content type representing a book. Each book as a genre (SciFi, Fantasy, Thriller ...) and I would like to expose, on the page of a book some books sharing the same genre. I created a view ...
-1
votes
0answers
16 views

Contextual filter in Block

I have created a content type product-review and added a field that is a reference field of taxonomy. Created a view to display all product-review contents. Created a block in the same view to display ...
1
vote
1answer
22 views

How to create entity relation of counselor to client?

I'm trying to create a relation in D8 between a counselor and clients. The counselor would have to record counseling hours for each client. I've looked at the group module, even building the ...
1
vote
2answers
18 views

How do I get a list of all taxonomy terms assigned to a node (or any entity)?

What's the best way to get all taxonomy terms assigned to a node? Should one use the taxonomy_index table? Should one iterate through the fields on the node object? I saw some answers for Drupal 7, ...
0
votes
0answers
10 views

How do I show terms only permitted for a user/role?

I have a view which shows all terms of a vocabulary. I must add a filter that shows only taxonomy terms for which a user or a role has permission. I have installed the module Permissions by Term. Now ...
0
votes
2answers
37 views

Is it possible to have 2 sources for migration?

I have a tid (taxonomy ID) and a csv file (which is a list of terms to remove during migration with columns : tid, name, delete ). The tid and CSV file are my sources for the migration. How can I ...
0
votes
1answer
47 views

Call to a member function label() on null after saving a node with a taxonomy term

I create nodes, which have a taxonomy field, like this: $node = Node::create([ 'type' => 'article', 'status' => 1, 'title' => 'Some title', ... 'field_taxonomy' => [1, 2, 3], ]);...
0
votes
2answers
16 views

Get taxonomy terms added to nodes

I am trying to get all the taxonomy terms added to a node. How would I get only the taxonomy term values that are added to a code in a mymodule_preprocess_node hook? Current term list: value1 (tid=1)...
0
votes
0answers
25 views

How can I get term id or term name on user profile page

I have a vocabulary(lessons) with terms as math,art,chemistry etc.. These terms are on user page in my lesson field. For example: My Lessons: Math,Geography,Art Scenario: I'm gonna use linked field ...
-2
votes
1answer
24 views

How to add country terms and languge field selected language in url?

I need a functionality in which I can select multiple language for a country. I have added the countries as taxonomy terms and in which I added language as a field, in which SUPPORTED LANGUAGES as ...
1
vote
1answer
62 views

How can I limit the exposed filters to only display values for which content exists?

We have a view for the Basic page content type, which has a Category field that allows to enter multiple values. All values for Category are displayed (IoT, Cloud, Security), but there are only nodes ...
0
votes
1answer
35 views

Output the term title on page--custom.html.twig

I'm pulling my hair out trying to create a custom page--custom.html.twig for a content type and getting taxonomy terms to display. I'm currently using the following piece of code: {% if node....
-1
votes
0answers
18 views

How to get the term of a taxonomy (not link) in account setting via REST?

My current version of Drupal is 8.6. In my account settings, one field named field_c_persion_tags is Entity reference and the type of item is Taxonmoy term. In Views, I set a REST export(api/v1/...
0
votes
2answers
31 views

How can a view page work with multiple word term name

I have user views page with path /members/%. (url as members/term-name).It shows if I use CONTEXTUAL FILTERS with term id but I need url with term name. Anyway , go back to story: academician,math, ...
1
vote
0answers
36 views

Migrating taxonomy terms only if the destination doesn't have the term name

Is it possible to migrate taxonomy terms by checking if the source term name matches with the destination term name. I would like to skip the migration if the term is present in destination. Tried ...
0
votes
0answers
36 views

Can a taxonomy vocabulary entity be disabled or unpublished?

Vocabularies are config entities. I can see the delete link in the UI. In the example vocabulary config yml - taxonomy.vocabulary.blah.yml - uuid: 16ebbc47-16ac-461c-0000-00000000 langcode: en ...
-2
votes
1answer
31 views

Sum the value of all nodes fields and display them on the taxonomy page [closed]

How to get result like on the picture? I created taxonomy term - Coins with two nodes. A field_coin_price is attached to the nodes. Using the View I can easily display the number of coins (nodes) on ...
0
votes
0answers
23 views

Show the nodes number of a parent taxonomy term?

I have parent taxonomy term (Coins) and a few child terms. Coins Dollar Half dollar 1 cent I show the number of nodes in a current taxonomy term using next method. Create a Taxonomy Term view (...
0
votes
1answer
21 views

View using Path

I'm having an issue combining the use of taxonomy terms, URL alias patterns and views. Here's my setup: 1) Taxonomy: A basic taxonomy, lets call it "Blog Tags". In here I have a term like Mountains. ...
3
votes
1answer
79 views

How do I use 2 different taxonomy view modes on one node page?

On a node page I have a term reference field. This term contains 3 fields For the term I've created a few view modes: view_mode_first contains: field_1 view_mode_second contains: field_2, field_3 ...
1
vote
1answer
60 views

Show multiple term references as ID in one row

I've got a view of nodes, displayed as fields. As each node may have references to multiple terms/tags, I would like to show all these tags. When I use field "term_node_tid", then I get the multiple ...
0
votes
0answers
16 views

Adding term relationship to view breaks view for non-admin

A bit of a strange one, I have a vocab called "Creative Commons Licenses". I have a content type called "Painting" that includes a term reference field for the Creative Commons Licenses vocabulary ...
0
votes
1answer
29 views

Programatically insert field value of for a taxonomy term

I have a taxonomy vocabulary called, school and the machine name is field_school_name. The vocabulary has a field called school id (machine name:field_school_id). I am able to add a verb successfully ...
0
votes
1answer
17 views

How to make one view with different taxonomy terms in different rows?

I want to make a view with 3 rows of lets say fruits, with 6 fruits max for each row. Spring, Summer and Autumn fruits. And I don't want them to be mixed in one array so I could style them in view-...
0
votes
1answer
21 views

My content type has a string of words, how do I make them tags?

I am very new to drupal. I currently have a content type called 'Issue', which has a plain text field containing something like "money, houses, pigs". How can I look at that string and turn each word ...
-1
votes
2answers
35 views

How to hide certain taxonomy views from user?

I have one general taxonomy view wich has this alias mask /taxonomy/term/%. What I need is to hide views for certain taxonomy terms like 'canada' from display while it'll remain showing the other ...
0
votes
1answer
24 views

Reindex Taxonomy URLs?

I have a list of terms all with assigned URLs already. When I change the term and the URL, it is not updating. I feel like there's a cache or reindexing needed ?
0
votes
1answer
28 views

How to map multiple existing term IDs to an entity

I'm trying to map multiple existing terms using their target_id values to an entity (Commerce Product) and I can only get the first value to map. My yml file looks like this: 'field_prod_category/...
0
votes
1answer
21 views

How can I add a condition to the list of taxonomy a view is created from

I've created a view using a taxonomy term let's say (a,b,c,d,e) A content type can have multiple selections of these taxonomy term. The view returns the content-type based off the taxonomy term ...
1
vote
1answer
60 views

How should I deal with a vocabulary with many terms?

I'm trying to use Drupal 8, but if Drupal 7 is better for that, I'm ready to go back to Drupal 7. I have a vocabulary that must contain at least 10,000 terms, but they can also become more than 100,...
0
votes
0answers
13 views

What possible workarounds to have private taxonomy terms per users

I am developing a Drupal site in which every authenticated user must have the privilege of creating new/updating his own taxonomy terms, and only those taxonomy terms created by the user are shown on ...
0
votes
0answers
26 views

Rest export contextual filter by taxonomy name

good night developers!. I have a view of a chapter content type and a relationship with the taxonomy term book. I can add any field from the taxonomy, but can not include the relationship in the ...
0
votes
1answer
17 views

Get taxonomy term field from where is attached

I have a taxonomy vocabulary like this: A |--B(branch_field) |-- C(branch_field) X |--Y(branch_field) |-- Z(branch_field) Each user has a reference to a taxonomy term. I need to create a view ...
1
vote
2answers
60 views

Get taxonomy name instead of id

I set up a search criteria using taxonomy terms to filter content. The taxonomy and filter work great. The problem is the links return like www.example.com/work?tid=1 but instead I would like the ...
0
votes
2answers
24 views

How can I make a node like template for a vocabulary?

I have a taxonomy where I want to theme the term pages. I only want to theme the terms pages in this taxonomy. No matter what I do I can't see to get it to show a template file that I can then ...
0
votes
0answers
19 views

How do I hide the taxonomies that the user does not have permission

When I remove a permission of a particular taxonomy vocabulary for a user role, it removes the permission for the role but it still shows the taxonomy vocabulary in the taxonomy list for the user. He ...
0
votes
1answer
30 views

Display single field from argument taxonomy term in Views header area

I have a view with a taxonomy term ID in the URL which is used to filter the displayed entities in the view. I want to display the description from the taxonomy term. I've tried this a million ...
1
vote
1answer
37 views

Taxonomy overview search term

In this manager: admin/structure/taxonomy admin/structure/taxonomy/manage/[fruit]/overview There is a way to add a search a term? So, if you have 100 terms it will easier to find a term. This ...
0
votes
0answers
21 views

how to fetch content result according to the terms Url alias name?

I have created the vocabulary with name blog category and created terms in the vocabulary like events,News,Category. For the Vocabulary terms name url alias generated in the form https://sitename....
0
votes
0answers
20 views

Node not appearing in taxonomy list when taxonomy term is selected within a paragraph

When I had my content type have a taxonomy term field in it, you could select the term and that content would be listed within that taxonomy page. However, due to the need to group that taxonomy field ...
0
votes
1answer
16 views

use taxonomy term for reservations how to prevent overlapping

I have a drupal site where reservations are available. We use fullcalendar module to visualize the room reservations. For a reservation the user needs to add a new content. The content uses taxonomy ...
1
vote
1answer
29 views

How to make breadcumbs grab taxonomy terms and use tokens

I have tried about 4 different breadcrumb modules now and none of them seem to do what I want. I want them to act in a similar way to Pathauto whereby I can mix and match tokens. There seems not to be ...
0
votes
3answers
40 views

Create a Term Queue on views

I have a views showing some selected terms of a vocabulary. The Views block is created using Taxonomy Terms as content(show). It showing order by the terms tree. But my client want to sort it as their ...
0
votes
0answers
28 views

user list referenced by paragraph item

I want to list teachers(users) based on lesson term which are used in paragraph bundle. User list will be on path .../path/% For example .../lesson/math Path page will show math teachers. What I ...