The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
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
279 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
19 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
108 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
39 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
189 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
52 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
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
1answer
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
67 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
33 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
165 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
226 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
31 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
104 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 ...
0
votes
3answers
135 views

Remove duplicate values in a column after join in drupal 7

I am using this db_select query. $query = db_select('taxonomy_index', 't1'); $query->distinct(); $query->join('node', 't2', 't1.nid = t2.nid'); $query->join('taxonomy_term_data', ...
0
votes
1answer
87 views

Migrating only articles with a specific taxonomy term

In the source D7, i have a content type 'article' containing a reference to a 'category' taxonomy vocabulary term. In the target D8, I have a content type 'article' as well, but i only want to ...
-1
votes
1answer
26 views

How to restrict term view page for respective user roles programatically? is it possible?

I tried to using hook_menu_alter but it doesn't work. It doesn't call page callback function. function mymodule_menu_alter(&$items) { $items['taxonomy/term/%taxonomy_term']['page callback'] = ...
1
vote
1answer
5k views

What is causing “Object of class stdClass could not be converted to string”

I'm receiving the following error: Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2227 of includes/database/database.inc)....
1
vote
1answer
78 views

Visibilities permissions of children links in the Toolbar

In a project started with the Thunder distribution, I'm currently managing the permission of the "editor" group. By default, it only have access to the content menu, and it's a good thing. But what ...
0
votes
1answer
111 views

Views REST Endpoint With paragraph field

I've created a REST export view to get a paragraph field in a JSON format but I cannot get the result properly, so I used Rest Views module but I got the results including something like these ...
0
votes
1answer
13 views

How do I display category items in a view content pane?

I created an Events content type. I created a vocabulary that has two category terms, Events and Plays. I have a view that contains a list of all content of type Events. Each Events listing displays ...
0
votes
2answers
48 views

How do I display a view pane with all items of a category?

I created an Events content type. I created a vocabulary that has two category terms, Events and Plays. I have a view that contains a list of all content of type Events. Each Events listing displays ...
0
votes
1answer
669 views

Facets hierarchical taxonomy terms not working

I use the Facet module version 8.x-1.x-dev. I have a list of taxonomy terms with parents and childs. The taxonomy term facet is an Entity reference field. I can't get the hierarchical structure ...
0
votes
1answer
525 views

Entity Query Condition for the referenced entity's type

According to the documentation for the condition() function, you can append columns to a field name, but I haven't found a way to make a condition on the referenced entity's type. // Something like ...
0
votes
1answer
15 views

How can I add a taxonomy-based view to a page?

I created a taxonomy with a vocabulary called Series. The Series vocabulary contains a list of terms x, y, z. I created a content type called Events, which has a field to tag the content with a term ...
0
votes
1answer
14 views

Forbid or autocorrect a certain term in a vocabulary

I am looking for a way to prevent a certain term to be created in a vocabulary. I don't know if there exists a contrib module with this functionality yet. Searches on Google did not deliver so far. ...
0
votes
0answers
18 views

How to show terms that haven't been selected in a view?

I have a vocab called 'Mounting Options' and I have selected a certain number of terms from this vocab on each Camera node type. The ones I have selected show on the front-end but I want to show ...
0
votes
2answers
101 views

Bulk Generating URL aliases for taxonomy terms doesn't do anything

In D7, I've imported ~8000 taxonomy terms. All these need to have a url alias, based off their names. I can check the 'Generate automatic URL alias' checkbox when editing each taxonomy term ...
0
votes
1answer
11 views

Enforce URL rules when posting content types

so I created a content type "Regions" - This includes the 13 provinces in Canada listed as individual terms. When creating a new post with the content type "Regions", you have to choose which term to ...
1
vote
1answer
34 views

How can I handle the user access to specific taxonomy terms?

There is a node form with a term reference field which's terms list I want to filter based on users/ permissions. I've tried several modules in which I can grant access either user- or role-based for ...
3
votes
2answers
554 views

How to correctly modify Taxonomy Term selection Plugin

I want some slight modifications of Drupal\taxonomy\Plugin\EntityReferenceSelection\TermSelection::getReferenceableEntities(), for example to not use - to indicate term hierarchy. How can that be ...
0
votes
0answers
57 views

Views block to list all terms in homepage and list child terms in taxonomy page

I have a views block of taxonomy terms. I want the block to display all terms when it is on homepage, and to list child terms when it is on a taxonomy page (contextual filter: Taxonomy term: Parent ...
0
votes
1answer
26 views

Multipart Form Fields - Taxonomy Included

I'm starting out a new project and I think I've come across something like it before but I can't think of the right search terms or something along those lines... What I'd like is a module to add ...
0
votes
1answer
62 views

Trying to make a filter taxonomy menu with multiple vocabularies

I'm currently having trouble getting a taxonomy menu to act as a product display filter. Actually I think I may need multiple menus as my products need to be filtered by: category, price, and color. ...
0
votes
2answers
823 views

Taxonomy term listing of nodes with the term in a paragraph

I found similar questions but not an actual answer... This is my setup In Drupal 8: Node Paragraph Taxonomy term reference I would like to use the default ...
1
vote
2answers
89 views

Looping through taxonomy terms and adding them to term reference field with Rules

I have a content type called Items. Within the items I have 3 unlimited term reference fields. Location (field_location_pi) Phase (field_phases_pi) Structure (field_structure_type_pi) I am ...
0
votes
1answer
30 views

How to display all the terms of a vocabulary with a list of the items associated to the term below in a view?

In a view in D8, I want to achive something like : term 1 -item 1 -item2 term 2 -item 3 -item 4 term 3 - item 5 - item 6 Is it possible ? If yes, how ?
0
votes
1answer
261 views

Sort grouping field associated with taxonomy term by weight on drupal 8 views

I'm currently trying to figure out how I can sort the grouping fields(Taxonomy Term) by weight that I have setup on my views. As shown in this screenshot below I have a grouping field that is ...
-1
votes
1answer
58 views

How to display custom text for entity reference field, depending on vocabulary term.

This must be simple, but I can't find how to do it .. Say I have a custom content type of 'staff' which, among other, has an entity reference field linked to a taxonomy vocabulary which has the ...
0
votes
1answer
27 views

How can I display node fields contextually in a block with terms from two separate vocabularies based on node ID?

I've got a content type that has a file field and as part of custom content type that we use to display document links. As part of that content type I have taxonomy 1 "site section" that I'm using to ...
-1
votes
1answer
79 views

viewswith multiple taxonomy fields with the same vocabulary, filters should show just selected terms

I have a content type with two taxonomy fields using the same vocabulary, I need a view with two exposed filters that, when both set to the same term, show just the nodes with that term in both ...
-1
votes
1answer
165 views

How to Display Taxonomy image field on node page

I need to display Taxonomy term image field on the node display page instead of the term name. Other fields are being printed like below and the $content variable is not printed any where. Any ...
-1
votes
1answer
28 views

Problem with taxonomy [closed]

I created a "Science" category, which shows up at the bottom of the add content page. But I also created a "History" category and that doesn't show up. Any ideas?
0
votes
1answer
64 views

Add trailing slash to taxonomy term. Issue with relative URL

We were trying to create relative links by using href="Link" or href="./Link" This works on all browsers, but in Drupal we are running into a problem becasue Drupal removes trailing slash from ...
2
votes
2answers
1k views

Adding a taxonomy term translation changes the original language value!

I have an issue when I try to add a translation of a taxonomy term using the site UI. The original language value changes to the translation value that I added. How can I prevent that from happening?
0
votes
1answer
358 views

How to show more terms in the “Parent terms” select list when adding taxonomy term?

When adding terms to a taxonomy vocabulary, the "Parent terms" scrolling selector list in the "RELATIONS" section only displays 4 items. When dealing with large, complex, hierarchical taxonomies, this ...
0
votes
1answer
574 views

How to print a taxonomy term's field value alongside a Views grouping header?

In Drupal 8.4.4 I have a "Living Things" taxonomy vocabulary. One field on the terms in the vocabulary is "Most Common Name", with machine name field_most_common_name. On my "Animalia" term its value ...