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
22 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 ...
0
votes
0answers
5 views

How to give users access by vocabulary and show the links in admin_toolbar according to the permission?

I have tried to give the user access to vocabulary granularly, currently it is only possible to give access to use vocabularies and terms and I only want certain roles to only manipulate certain ...
1
vote
0answers
19 views

Taxonomy term limit | how to bypass [on hold]

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
36 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
32 views
+100

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
14 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
0answers
24 views

Full text search with taxonomy term

I have a view with full text search working I configured with Apache Solr. My index fields are title, body, taxonomy tags. I have a need to show a hierarchical tree of taxonomy terms on the left of ...
0
votes
1answer
25 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
1answer
13 views

List nodes related to a taxonomy term (& group) from a content type? [closed]

I have a single content type that has a taxonomy vocabulary of 5 terms. What I would like to do is this: Term 1 title summary title summary title summary Term 2 title summary title summary ...
0
votes
0answers
24 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
21 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 (...
0
votes
0answers
30 views

How to grab taxonomy term with node_presave hook

So I'm running a hook to update the title with values from the node whenever the node saves. I want to update part of it with a taxonomy term but when I try to get the term from the entity it says it ...
0
votes
1answer
88 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
32 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 ...
0
votes
1answer
53 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
15 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
31 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 ...
0
votes
0answers
24 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
57 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
10 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
11 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
35 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
20 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
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
21 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
33 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
27 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
43 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
27 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
11 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
41 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
84 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
24 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
28 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
34 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
84 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
66 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
36 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
86 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
40 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
39 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
25 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
25 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
81 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
65 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
19 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
18 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-...