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
1answer
316 views

Sort view by tag count

I have to show all the tags and sort based on count. I am able to get the count of tag used by pages through views but not able sort based on count as this option is not available in views. Any ...
1
vote
0answers
53 views

Taxonomy term limit | how to bypass [closed]

Migrating to Drupal 8 - I find a new restriction - in Views filter - Taxonomy term field cannot be more than 128 characters..... In Drupal 7 I never had seen such a restriction, or it was more longer....
0
votes
3answers
236 views

How can I display a list of users who have the same taxonomy term

The setup: A Taxonomy Vocabulary called "Area of work". The vocabulary has the following associated terms: A, B, C, D, E, F, G, etc. During registration users have to choose a department from the ...
0
votes
1answer
93 views

Translating a taxonomy term does not populate content into fields

When translating a node into another language it does the following: automatically populates all fields with content from the source node on the edit form ensures the two nodes are linked as ...
0
votes
1answer
298 views

Pass argument when overriding controller in RouteSubscriber

I am having the issue of overriding the default taxonomy controller /taxonomy/term/{tid}. I have created my own controller which takes {tid} as a parameter and I want to use it instead, so I overrode ...
0
votes
1answer
41 views

Sort criteria by year for blog posts

I have a View set up for blog post content in Drupal 8. The blog posts were all posted at the same time but have different "year" tags attached to them based on when the post is relevant to the ...
0
votes
0answers
28 views

Using contextual filters with multiple taxonomies plus dynamic paths

I have a content type, FAQ, which has the Title, Body, and Related AP Course(s) fields. The last is a node reference field, where the target is a AP Exam node. I'd like to create a view page that ...
0
votes
1answer
165 views

Exposed Filter of Child Terms on Parent Page

I'm looking for a dummy's guide on how to configure the default taxonomy term views so that I can display an exposed filter of child terms on the parent page. Assuming I have the taxonomy structure ...
0
votes
1answer
9 views

How do I edit the links in a filter

I don't know if this is the right forum, but I'm updating our corporate website, and picking up where the previous person in my job left off. From the main horizontal menu on the front page (...
2
votes
1answer
11k 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
150 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
443 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
1answer
458 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
1answer
168 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
1k 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
2answers
32 views

How do I automatically assign a node to a term?

When an user role changes and becomes "writer", there is a rule that creates a new entity type "taxonomy term" name "user name" and assign it to vocabulary "writers". This works. Now, the user can ...
0
votes
0answers
83 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
25 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 ...
1
vote
1answer
20 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 ...
1
vote
1answer
671 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
639 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
47 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
677 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
2answers
339 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
690 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
1k 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
35 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
137 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
1k 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
1k 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
70 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
267 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
60 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
41 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
156 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 ...
2
votes
1answer
194 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
1answer
35 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
21 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
25 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
105 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
39 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
73 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
92 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
193 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
39 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
613 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
107 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
1answer
193 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
353 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
1answer
27 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
3 4
5
6 7
71