Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
348 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
41 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
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
151 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
1k 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
153 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
88 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
51 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 ...
0
votes
3answers
252 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
30 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
102 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
119 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
24 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
189 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
289 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
118 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
418 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
92 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
29 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
259 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
29 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
207 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 ...
0
votes
1answer
239 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
112 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
98 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
175 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 ...
-1
votes
1answer
47 views

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

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
19 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
58 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
44 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
387 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
34 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
315 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
20 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
127 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
41 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
215 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
59 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 ...
2
votes
1answer
2k 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 ...
1
vote
2answers
2k 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
81 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
34 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
181 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
259 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 ...
1
vote
1answer
32 views

Vocabulary terms deleted but still visible

I work on a D7 website where some taxonomy terms were created and then deleted. I’ve build a search form with views based on taxonomy terms (filter criterion: Content: Term name (field_term_name)) ...
0
votes
1answer
109 views

Issue in taxonomy term with hyphen(-) in url drupal7

I have a taxonomy called free-choices.But the contents are not listed when hyphen(-) in the taxonomy name.The pages with taxonomy name without hyphen is listing contents.How to solve this issue?I ...