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
2answers
230 views

How to set a specific vocabulary in a taxonomy reference field during migration?

I am doing a D7 > D8 migration (where the D7 site in question itself was migrated from D6 some years back) and most stuff just works fine. But I am stuck on the field (instance) settings for taxonomy ...
0
votes
0answers
36 views

Display taxonomy terms in node_content-type.tpl and node_content-type--teaser.tpl

i'm on drupal 7.x, i have simple terms without subterms to display on my custom content type (node and teaser templates). It should be easy to do, but i don't understand how to display them, i tried ...
0
votes
0answers
23 views

Deploying user accounts between two sites with deploy module

Currently I am configuring two virtual machines in preparation for one project. I'm supposed to utilize deploy module in order to sync project between two machines. So far i figured out how to deploy ...
0
votes
0answers
22 views

In a view, how to display a custom, sorted list of vocabulary terms based on weight

I am using Drupal 8. I will describe what I want to achieve. Say I have a content type called 'paintings' which has title, body, images and references a vocabulary called 'colors'. Now, each ...
0
votes
1answer
30 views

EFQ SQL error when using filedCondition on two different taxonomy terms

I'm using the below code to select a 'store' content type which has two taxonomy fields: category and brand. $queryStore = new EntityFieldQuery(); $queryStore->entityCondition('entity_type', 'node'...
1
vote
1answer
35 views

How do I show related nodes as attachment in the term view block? [duplicate]

I have created a term view and content view for list the terms nodes. How can I show related nodes as insert view in term view block in Drupal 7?
0
votes
0answers
109 views

How can I load a taxonomy term into a views preprocessing hook?

I have a strange situation where I need to insert a non-product entity into a view result of products. The view appears on a taxonomy term page, and I want to add some field content from the term into ...
0
votes
1answer
553 views

Create view with path relative to taxonomy term

I have multiple content types and would like to create a couple of views to show various content types as sub directory to the term page. The challenge is that I need to the path to be taxonomy/term/%...
0
votes
0answers
117 views

D8 override core class

I am using SHS module. What I want to do is, override the SHS widget such that the I can alter the query used to fetch the data in the widget. Till now, I have overriden the route controller and have ...
0
votes
1answer
67 views

Taxonomy term doesn't show up in admin/structure/taxonomy/manage/tags/overview

I migrated a Drupal 6 site to Drupal 8. Current running version is: 8.5.3 I created 4 terms in the Tag taxonomy and referenced in the content type Article. The terms, however, do not show up in the ...
0
votes
2answers
32 views

View Path TaxonomyTerm/sub-page

I am looking to create a QUESTIONS view for all terms in a taxonomy vocabulary. Let's say I have a taxonomy that has terms apple, orange, banana. We use pathauto to go to domain.com/apple which shows ...
1
vote
3answers
126 views

Can not unset rows of a view programmatically

I created a view of terms using views_tree module. I need to remove some of the terms under some conditions. This is my code function THEME_views_pre_render(&$views) { for($i = 0 ; $i < ...
0
votes
1answer
25 views

How to display all terms for specific taxonomy in views incl. ones without content?

How to set up a view that displays all terms for a specific taxonomy including the ones that have no content assigned? I just can't figure it out to do it with a view:CONTENT and mainly found posts ...
0
votes
1answer
12 views

Add a DB record for taxonomy with Rules

I actually import terms from Feeds Xpath and copy them to a Content taxonomy field. But this term isn't recorded in the term_node table as expected by checking the checkbox. So can I use Rules to "...
0
votes
1answer
46 views

view content filtered by taxonomy children

I`m having a view block displayed on node page. In this block i want to show only other nodes that have the same child taxonomy selected. I tried with contextual Content: Has taxonomy term ID (with ...
0
votes
0answers
71 views

How to list comma seperated nodes titles on each row of a views table of terms listed with a column of nodes used by this term

I try to achieve the up-side-down scenario of that what many Drupal users know as one of the standart Views views, where a list of nodes has a field (column) listing all terms used with commas like ...
0
votes
0answers
23 views

How to display common taxonomy terms from 2 diffrent vacabulary in views

I have 2 vocabulary and this vocabulary used in content type. I want to display common terms from different vocabulary. 1) Basechart taxonomy: - Alphabets - ASER - Story - ASER(D) 2) ...
0
votes
1answer
126 views

how to pull parent term from nested array?

I'm building a custom field and formatter in Drupal 8(and teaching myself how to use Drupal & PHP, so bear with me) I'm not sure how to pull a parent term 'name' value from a nested array. ...
0
votes
1answer
170 views

Can't programmatically fill address field on taxonomy term creation

I'm creating some taxonomy terms inside of an update hook and they have a coordinates field and an address field containing only zipcode and locality. The Vocabulary is called cities, the address ...
0
votes
2answers
81 views

How do I get the vocabulary of a term inside an “article” type content type?

I have a content type tagged with various vocabularies. Each vocabulary has terms which I want to style with particular colours based on the vocabulary. For example, say I have a "Fruits" vocab which ...
1
vote
0answers
254 views

migrate taxonomy term csv

I want to migrate on my Drupal 8 website a file CSV which contains taxonomies terms. Its a simple file with id,name. I create a module: name: 'Taxo Migration' type: module description: 'Migration ...
0
votes
1answer
79 views

Repeated elements in translations of a block view

I have a small problem when translating taxonomy terms inside of a block view. View configuration: Output: The translation is correct but the element quantity is incorrect. The idea is to have one ...
1
vote
1answer
27 views

Rule fetches only single taxonomy term from multiselect values

I have created a Rule which is supposed to fetch all the selected term from a taxonomy term field (a field that holds a list of taxonomy terms). But when the rule is executed, it fetches only one ...
0
votes
1answer
174 views

How to add content of nested terms to Taxonomy term View

By default Drupal 8 taxonomy view doesn't show the nodes of child taxonomy terms. I need to include them but don't know to to modify the view Taxonomy term (Content). I have the following vocabulary: ...
0
votes
0answers
28 views

How can I allow users to specify one main taxonomy term from a set of terms?

In my node edit form, I have a field that allows users to select multiple terms from a fixed list to designate "categories" that the node is part of. I would like the user to be able to specify that a ...
0
votes
0answers
165 views

D8 - how to group view by paragraph term reference parent

I can't group view results by a taxonomy term's parent... I have a content type of plant, with "field_plant_locations", referencing the paragraph type, "plant_locations". In this paragraph, I have a ...
1
vote
1answer
156 views

Vocabulary Term Translation Edit/Delete Page Get Access Denied/ Doesn't Function Correctly

I currently have a taxonomy term with multiple translations. When I visit the translate tab for the term it does list all of the languages properly. However no matter what translation I'm attempting ...
3
votes
2answers
60 views

How to create a list of vocabulary names for a widget?

I would like to create a customizable filter widget that can be used to filter a view on a page. One type of filter uses taxonomy terms. While I can easily create a list of terms, I find I cannot ...
0
votes
1answer
70 views

what is the equivalent for category in wordpress in drupal websites?

to boost the ranking for a specific keyword we should create categories in wordpress. how should I make a category in drupal? There are only tags. Are tags in drupal the same as categories in ...
1
vote
1answer
106 views

How to change the system path of a taxonomy vocabulary to correspond a view

I'm using Drupal 8 and i want different vocabularies to be displayed by different views. Each view should have a different path with a contextual filter but when i define my path on pathauto the ...
0
votes
1answer
40 views

how to create a view with recent item also display catagary name

I want a block on my home page called (recent files addit) but I want to display catagary name also like file name (how to create a folder) catagary: (basic computer learning) you can find same ...
0
votes
1answer
17 views

Echo taxonomy description based on specific value of a field in a custom template

I'm trying to check the value of a field on my content type that is a list of taxonomy terms to see if it matches a specific taxonomy term, then if it does match, echo the description field of the ...
0
votes
1answer
45 views

Setting multiple checkbox values with form_set_value

I have a field that is a taxonomy term reference with a checkbox widget that allows multiple values. I am looping through a json structure, finding the associated code value and then setting the ...
0
votes
1answer
35 views

Taxonomy with adjacent cities

I have a content type 'company' with a related tax-term: 'city'. With a view I can search for companies based on 'city' with autocomplete. Is there a way I can relate adjacent cities into the same ...
0
votes
1answer
286 views

Taxonomy term not displayed in the current language

My setup is simple: A content type "film" with a taxonomy field "Type of film". The content type "film" is translatable, but not the field "type of film" (same type for all languages): only the ...
0
votes
1answer
27 views

How to add some custom text after a taxonomy field in panels?

I have a taxonomy field called cvtype. This cvtype is containing several names like - Standard - Complete I can add this to a Panel by adding content > node. I would like to add the letters CV ...
0
votes
1answer
21 views

Multiple Book Versions

I imagine this has been asked before, I'm just struggling to find the right answer. Using Books to create documentation for an open source project. We're covering 3 domains, Users, Developers, and ...
0
votes
1answer
206 views

content types vs. paragraphes types + taxonomy

I have quite a complex content structure and found the paragraphs module (in combination with taxonomies) can be very powerful for creating complex compound fields and dynamically reusing existing ...
0
votes
1answer
17 views

Vocabularies with terms on a view

I need to create a page with listed vocabularies and terms related to it in 3 columns. Vocabulary 1 Vocabulary 2 Vocabulary 3 Term 1 Term 4 Term 7 Term 2 ...
0
votes
0answers
74 views

How do I show only language specific and translated taxonomy terms in a field which references a taxonomy?

How do I show only language specific and translated taxonomy terms in a field which references a taxonomy? In my xyz content type I have taxonomy reference fields. While translating the content ...
0
votes
2answers
36 views

ABT term reference field hidden in Node View

I am using "Access by Term" configuration to control VIEW and UPDATE access for a content type with a Term Reference field in the content type. See screenshot. But setting this configuration hides ...
0
votes
1answer
166 views

I cannot modify entity values

I have installed the Views Bulk Operations module and am looking to use it to mass edit my content. However, when I select a few nodes to edit and select Modify Entity Values and click Execute, I get ...
0
votes
1answer
48 views

Search API cannot search taxonomy terms

I have built a search page using Search API, specifically the database version. This search page is a simple view and works exactly how I'd expect it to. However, now I need to update the index so ...
1
vote
1answer
1k views

How do I get all children's taxonomy term IDs? [closed]

How do I get all children's taxonomy term IDs in Drupal 8? $tree = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadTree($vid); uses the taxonomy term name, not the taxonomy term ...
0
votes
1answer
1k views

How to access taxonomy term field?

I added two fields to my vocabulary terms field management. How do I get these values? There is no fields like color or Image in my Taxonomy Term vocabulary dump. How does Drupal 8 store these ...
0
votes
1answer
53 views

Restrict core to generate taxonomy terms' URLs

I'm working on very large existing Drupal site that has thousands of nodes, user in it and bunch of Taxonomies as well. I understand very well that Drupal core generates default URLs (taxonomy/term/...
0
votes
1answer
32 views

How to do path aliases for views like news/%?

Let's suppose we have a view like news/%. Where news is my content type, and % is tid of term id from vocabulary "categories". Obviously that urls like news/3, news/5 etc. works great. But how to do ...
0
votes
0answers
34 views

How to make multiple catalogs on one site using a common vocabulary?

I have 4 node types: Type 1 Type 2 Type 3 Type 4 There are also 3 vocabularies (taxonomy) Vocabulary 1 Vocabulary 2 Vocabulary 3 Each type of material has many of own fields, but these 3 ...
0
votes
3answers
130 views

Exposed filters and taxonomy. How to make a redirect to a term page when exposed form submit?

Let's say there are 2 vocabularies: Sizes (S, M, L, XL) Colors (Red, Green, Yellow) pathauto sizes: /size/s, /size/m, ... pathauto colors: /color/red, /color/green, ... There is a catalog - ...
0
votes
1answer
175 views

Drupal 8 load term by substring

Drupal 8 has term method loadproperties which works for custom fields; however, how can I use it (or can I use it) to load by substrings. For example if I have a field: field_full_name and I want to ...