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
3answers
62 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
1answer
18 views

Print taxonomy term for theming nodes

I'm not a PHP developer, so I have a problem with customizing a theme. I create a vocabulary "City" and a term "Shiraz", then a field "field_city" as a taxonomy term in my content type. Now I want ...
0
votes
1answer
181 views

Related Content By Taxonomy Term and fields

I have a content type which has taxonomy term field (Department). There is another field of the same taxonomy term (Priority Department) I want to create a list of related content where the block ...
1
vote
1answer
17 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
62 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
28 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
37 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
55 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
56 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
1answer
31 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
135 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
299 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 ...
1
vote
0answers
74 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
25 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
624 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
90 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
84 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
33 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
170 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
32 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
1answer
241 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
67 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
57 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
429 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
32 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
28 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
65 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
37 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
2answers
91 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
36 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
34 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
340 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
24 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
1answer
114 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
77 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
33 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
73 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
476 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
26 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
61 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 ...
1
vote
1answer
104 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
38 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
248 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
87 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
118 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')...
0
votes
2answers
44 views

View of nodes and all their taxonomy terms

There is a vocabulary which has an additional field 'field_icon' I have a view that displays nodes of a certain content type. I am looking to display all the term's field_icon associated with each ...
0
votes
0answers
9 views

How to set a rule to create taxonomy terms from list of words upon node save?

Working in Drupal 7, I have a content type "WordBank" that offers the user to fill out a list of words, a text field with maximum 10 values. The maximum length per list item is set to 25 characters. I ...