Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
598 views

How to get taxonomy term field values

I have created vocabulary "Hospital" and created text and image fields like: Hospital Image: (machine name: field_hospital_image) // image field Hospital Contact: (machine name: ...
0
votes
1answer
42 views

How do I display all terms of nodes created by user in a user view field

I have a User view where I list user information with contextual filter UID. I want to display all the terms from the nodes that the user added. I added the Author relationship so that way I can ...
1
vote
1answer
110 views

Page title from the exposed filter term

I have a view that shows all the contents of my site, with an exposed filter, that allows to filter these contents according to different taxonomy terms. I would like the taxonomy term chosen via ...
0
votes
0answers
21 views

Why does “Taxonomy term: Rendered Taxonomy term” display differently to the field containing “Taxonomy Terms”

I'm asking this question to get a better understanding of what Views is doing in the background. I'm referring to solutions shown on Grouping a View by Taxonomy term with multiple values without ...
0
votes
1answer
44 views

How to limit access to vocabulary term by role?

We have two roles: Reviewer and Editor along with two content types: Basic and Article. We have a couple vocabulary terms and taxonomy fields on each content type. Currently only users with Administer ...
1
vote
0answers
50 views

Pathauto bulk update for taxonomy terms with unchecked “Generate automatic URL alias”

I have the same issue addressed for D7 here: Bulk Generating URL aliases for taxonomy terms doesn't do anything or here: Bulk update for unchecked "Generate automatic URL alias" And I'm ...
1
vote
2answers
121 views

Combination of multiple taxonomies

I have these following 4 Taxonomies 1. New Taxonomy 2. Content Category 3. Technology Taxonomy Applications Gamification Architecture etc. Totally 170 terms 4. Vertical Taxonomy Automotive ...
0
votes
0answers
11 views

How to target specific alias or tid with views-view-responsive-grid template?

I have a template named views-view-responsive-grid--taxonomy-term--page.tpl.php in which I have added a custom block to the left of the responsive view grid with the help of my foundation grid, like ...
0
votes
0answers
14 views

How do I automatically assign a node to a term?

I'm playing with taxonomy and rules. I need help, again! Scenario When an user role changes and becomes "writer", there is a rule that creates a new entity type "taxonomy term" name "user name" and ...
0
votes
0answers
42 views

How to use DS layout on page generated with views?

I have a site where products are shown in different categories using taxonomies. I then use a view that emulates Drupal core's handling of taxonomy/term to generate those pages. Now, in only one of ...
1
vote
0answers
23 views

How to export the translation of a vocabulary?

I have 2 vocabularies. Vocabulary 1 and Vocabulary 2. Vocabulary 1 is exported in feature test_feature1 and Vocabulary 2 is exported in test_feature2. My site is multilingual. I want to export the ...
0
votes
0answers
13 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
vote
1answer
14 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
64 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
181 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
116 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
vote
1answer
44 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
97 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
12 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
50 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
158 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
36 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
30 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
57 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
161 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
202 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....
0
votes
2answers
38 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
174 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
49 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 ...
0
votes
1answer
31 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
92 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
67 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
22 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
32 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
19 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
22 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 ...
0
votes
2answers
48 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
29 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
34 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
24 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
79 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
1answer
26 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
153 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
35 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
36 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
94 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
89 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
27 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
19 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
40 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 ...