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

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

1
vote
1answer
14 views

Group users and display the group on the profile page

How can I create a group/role/taxonomy term or anything else to group specific users ? I also want to display the "group/role/taxonomy term or anything else" on the users profile. For example: I go ...
0
votes
1answer
23 views

node_save() null tid column

I am trying to create a node programatically like so, $newNode = (object) NULL; $newNode->type = 'job'; $newNode->title = $data['JobTitle']; $newNode->uid = $user->uid; $newNode->...
0
votes
2answers
17 views

Retrieve authro/owner of term

I am loading a term and trying to get the author or owner of the term, however I can not see any function under the Term Class On the other hand I can see the translation author being present on the ...
0
votes
1answer
25 views

Behavior of taxonomy-term classified paths

We have customer who insists that there is a setting/method that will order the listing-page for taxonomy attributed event-type by date ascending. My exploration has lead me to the .../admin/config/...
0
votes
1answer
36 views

Grandchild nodes (of a nested taxonomy term) on node page

Every time I think I understand relationships… Got desperate and cannot make work following context: A node has a reference (field_a) to a term 1A of vocabulary A. That term 1A itself has a reference ...
1
vote
1answer
32 views

How can I translate the label of a vocabulary?

I load the vocabulary with taxonomy_vocabulary_load($vocabulary_id). How can I can translate its label in the language currently used?
0
votes
0answers
19 views

Current term as hidden field

I am setting up some custom blocks to show when on a taxonomy page. Is there any way to retrieve the taxonomy name of the term that is being visited and add it as a field? A hidden field to be exact....
0
votes
1answer
15 views

How to change calendar entry background based on taxonomy?

Folks, I'm trying to figure out how to style my calendar. I was able to add color stripes based on my taxonomy, but the background of calendar entries is still that ugly yellow #ffc. What I'd like to ...
2
votes
0answers
16 views

How to select, add, limit or level select hierarchical taxonomy terms as field widget values?

To sort and "tag" content hierarchically Drupal has/had the great ability to build hierarchical term trees like: car > toyota > combi, car > ford > lector, etc. which could be added to content in ...
0
votes
1answer
36 views

Child & Grand Child terms of Parent Term from URL

I am looking for a way to display both the Child and Grand Children of a taxonomy term (found on the URL) on the same page. Example Taxonomy called Food. Top root term called GRAPE has children and ...
0
votes
0answers
34 views

Taxonomy page accessing terms in header

We have the need to have anchor links to the various taxonomy terms listed in the overall Taxonomy page. The links need to be dynamically created as the terms change. The links should have ...
1
vote
0answers
63 views

Free tagging (term) not translated when creating a node

I have a bundle type "article", which is translatable in 2 languages (English (=default) and French). The user can select the language when creating the article. It also has a "free tagging field", ...
0
votes
0answers
14 views

Vocabulary Terms redirect 404 page not found

I am using drupal 7.59 Today i see the my taxonomy's terms redirecting page not found. these topic i have done but the issue is still happening. I'm using pathauto module in this module i have ...
0
votes
2answers
31 views

How to create a view of hierarchical taxonomy terms and their nodes?

I'd like to create an HTML sitemap viewable by a human. I mention that I'd like to keep the hierarchy (tree structure of categories with subcategories) like the following: - TERM_A - Node a - ...
1
vote
2answers
69 views

Taxonomy view page for double nested terms

I have a content type that has an entity reference to a taxonomy term. The referenced taxonomy term has furthermore taxonomy terms referenced to it. On the taxonomy term view page, I would like the ...
0
votes
1answer
66 views

How to make Dynamic Term Link based on content type?

My web site has three content types ( Event, Course, Video) and 2 taxonomies(city and schools) All of them have same taxonomy referenced field. Eg:New York City events or New York City courses will be ...
0
votes
0answers
20 views

Filter with Page + attachement

I'm trying to filter content based on user data. I've created taxonomy and made the "link" between my user and my element. For this part, it's working. Taxonomy is "Privilege" which contains "Gold" ...
0
votes
0answers
12 views

Add the active class to the current term

I have a view that's outputs 3 taxonomy terms as teasers. When the context has the current (tid) - so you are on the taxonomy page of one of the 3 there should be an active class added to the div ...
0
votes
3answers
36 views

How come I cannot fetch the name of the taxonomy term from term id?

We are doing the following query below to fetch all the taxonomy term values in the term_category vocabulary term. When we do the following query below, we get NULL value returned. Content Type: ...
0
votes
1answer
20 views

Create a field with options are a combination of taxonomy terms, and content types linked to those taxonomy terms, for which the content type is used

This is a decoupled drupal 8 back end with an angular front end connected over jsonapi and other custom restful inputs. We have a coupon content type in out Drupal csm. It is exactly what it sounds ...
0
votes
0answers
12 views

Get custom taxonomy fields [duplicate]

I am trying to get a custom field assigned to taxonomy. I have tried this: $vid = 'zeme'; $terms = \Drupal::service('entity_type.manager')->getStorage("taxonomy_term")->loadTree($vid); $...
0
votes
1answer
17 views

Commerce Product listing View with category contextual filter, How to show items of (selected term and its child terms)

I have a the view 'Browse Products by Category' with the path: /taxonomy/term/% and a contextual filter: Product: Category (field_category) and let's say I have these categories: Sensors --- ...
0
votes
0answers
15 views

Same layout, different contexts

I'm working in Drupal 8.5. I have a requirement to create a re-usable widget that the content editors can use to place a set of arbitrary statistics on the home page or elsewhere. So far, this doesn'...
0
votes
1answer
46 views

Parent term doesn't show child term entities

My website has two taxonomies school and city, are connected. Here's city term list Newyork(parent) -Yonkers(sub-term) -Albany(sub-term) -New Rochelle(sub-term) -Utica(sub-term) And school term has ...
0
votes
1answer
48 views

How can I show referenced terms on other term page with view

My web site has two vocabularies for event content type. Vocabularies: City and Dance School. School terms use city terms. I want to show school terms as a list on city term page ( Eg. Newyork Dance ...
1
vote
0answers
58 views

Hide a taxonomy term

How can I hide, disable or un-publish some term in a taxonomy? The term should not be displayed in published nodes. There is the module Taxonomy Term Status for Drupal 7. Maybe there is something ...
0
votes
0answers
28 views

Taxonomy page variables giving empty values

I have a taxonomy page set up using taxonomy views. I added the page--taxonomy.html.twig template, but the output of {{name}} and {{content}} is an empty string. I also tried using the page--taxonomy--...
0
votes
0answers
25 views

How to get all vocabularies in a taxonomy retrieved from a referenced field?

I have a taxonomy that I am getting in the page twig file after referencing a field from the node object. The twig file is a page for a content type, i.e. page--content-type.html.twig. So node....
0
votes
1answer
34 views

Taxonomy terms with numeric names and views filtering within range

I have a very large taxonomy vocabulary with numeric taxonomy term names like: 10123,10124,10125,... etc. My node have a min value field and max value field. Both fields are taxonomy referenced fields ...
0
votes
2answers
29 views

How do I create a list of Nodes within a list of taxonomy terms, within a node?

I want to make an awards event where users can log in and nominate their products in specific categories. I have a node: "Awards Event" where the details of the event are defined I have a taxonomy: "...
0
votes
0answers
147 views

Creating terms programmatically produces unhelpful deprecation message

Every example I've seen for creating taxonomy terms programmatically in Drupal 8 uses either Drupal\taxonomy\Entity\Term::create($values)->save() or entity_create('taxonomy_term', $values). However,...
0
votes
1answer
19 views

Making landing pages with taxonomy

I'm trying to make about 100 landing pages using taxonomy. I'm trying to stick to Drupal 8 core features as much as possible. I created two taxonomy vocabularies, Places and Main keyword. Now, what ...
0
votes
2answers
21 views

How to create links from term to node

On the node display I would like to create a list of services but for some of the services, I would like the list element to be displayed as a link to a certain node, and some will not have links. I ...
0
votes
1answer
21 views

One product in multiple categories

using drupal7 commerce and trying to figure out how to have a product assigned to multiple categories(old ubercart user here). The only way I have found so far is to create a new product view for each ...
0
votes
1answer
31 views

In views formatted as table, columns with taxonomy term fields are sorted according to term ID, not label

In Drupal 8 I have View formatted as table, where user can click to any column header to sort displayed records according to the given field. This works well for numbers (ascending/descending), as ...
0
votes
0answers
21 views

Set taxonomy term as translation of a term in a different language

I have two existing taxonomy terms, in different languages. How do I set term A to be the translation of term B?
0
votes
0answers
27 views

How to create browse by taxonomy term dropdown?

I am trying to recreate in Drupal 8 the search page that somebody created in PHP. I am looking for the way to browse bibliography catalog by the Author name (which is a taxonomy term). Visitor picks ...
0
votes
1answer
28 views

How to add custom sort order to a taxonomy field list?

I am trying to sort the list of content according to the weight order given to taxonomy term. Terminology used: content type : contact-person-details taxonomy : company vocabulary which ...
0
votes
0answers
14 views

Auto-create terms during node migration

I have a CSV file that I want to import as nodes with Migrate API. Some of the columns contain names (separated by semicolon) that should become term names, referenced from the node via term ...
0
votes
0answers
24 views

Taxonomy Terms Not Displaying Results

I have added product categories vocabulary to my default product type. Added few products through that default product type and selected relevant terms for each product I added. When I am going to ...
0
votes
0answers
19 views

How to filter content to a view based on the root term of a taxonomy inside a paragraph?

I've made a content type with a paragraph list(that can be added when edited), with each of the paragraphs on that list containing a taxonomy term. I've wanted to make separate views of the content ...
0
votes
3answers
68 views

How to get term by path or alias?

I've seen this question posted many places, but no answers - or relevant answer. i.e. how to get term object or ID from path or alias e.g. /cat/subcat or /taxonomy/term/6??
-2
votes
1answer
20 views

Create a content for taxonomy vocabulary

I have one task to do but i'm not sure where to start. I have to create a content for storing current and historical data for each term in "extaxvoc", the current data will be shown on Search pages ...
0
votes
0answers
42 views

Taxonomy term deleted but still visible (again)

I have seen this question, but it seems that the behaviour in my case is even worse. I have a text field with custom autocomplete which connects to an external service to get terms, and then it ...
0
votes
0answers
18 views

D6 -> D8 : Migrate only taxonomy terms from a specific vocabulary

When doing a D6->8 migration, my taxonomy term migration template imports all the taxonomy terms found in the source D6 site into my specified D8 taxonomy. How do I filter only the terms that belong ...
0
votes
0answers
30 views

Two different content paths for the same content type with different taxonomy terms

Sorry for the inaccurate title. I have a content type called product display. In product display I use taxonomy terms, 8 different term names, to categorize the different products. However, I have ...
1
vote
1answer
75 views

Weird redirect on taxonomy term edit page

When I try to edit taxonomy terms, or delete them, and I click on edit/delete, it redirects me to that term page instead. I also have Devel module installed, and when I choose that option in the ...
1
vote
0answers
19 views

Views display taxonomy terms with vocabulary title as separator

As the title suggests I would like to show all taxonomy terms from different vocabularies separated by their vocabulary name's in one view. But unfortunately the field vocabulary title does not exist ...
2
votes
1answer
33 views

How to stop users from flagging other users if they have a custom taxonomy term?

I'm working on a project where users vote other users using the Flag module. Each user has a department term reference field. I would like to stop a user from flagging another user if they have the ...
0
votes
0answers
12 views

Get image of taxonomy term of referenced content type B in content type A twig template

I'm trying to display an image in a twig template. My content is organized as follows: I have a content type A ('Lesson') that has an entity reference field that references a content type B ('Series')...