Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
11 views

Change taxonomy term of node through comments

I have a node with status. Status is a taxonomy with states - open and closed. I need to change the status of this node to "CLOSED" using the drop-down menu and submit on the comment. How do ...
0
votes
1answer
13 views

Different custom view per taxonomy

I'm currently working on my first Drupal 8 project and while many things are now integrated in the core, others still stump me (for example restoring options to now bare bones CKEditor requires like 4 ...
-2
votes
0answers
15 views

Display taxonomy parent in node.html/twig [closed]

I would like to print a taxonomy parent of my taxonomy term in my node.html.twig. Thank you for your help !!
0
votes
0answers
43 views

Display the fields of the current taxonomy with an exposed form

I'm using the Taxonomy term view. I expose the "Has taxonomy term" filter to my users in a block. I want to display the title and the fields of the current taxonomy even when a term has been ...
0
votes
2answers
26 views

How can I export and then import taxonomy terms?

So I built my own custom entity type (we'll call it notes). And on my notes I have fields that use taxonomy terms, however when it comes to exporting the data out on individual fields, it shows the ...
-1
votes
1answer
34 views

Is there a way to create a list of Vocabulary (Replicate this page: /admin/structure/taxonomy)

I have created a custom layout and in that i want to show the content of this page -> /admin/structure/taxonomy. Please suggest if there is any way out. Thanks
1
vote
1answer
41 views

How can I change which view wins over two using the same path?

I have two views in Drupal 8. The standard Taxonomy term (content) view, path: /taxonomy/term/% My custom view for just one term at path: /term-alias When I go to my custom term, I see the view for ...
0
votes
1answer
23 views

View to display all child taxonomy terms

I have a content type called "Unit Staff" with a term reference field called "Department". I also have a vocabulary called "Person" which is using a paragraph field ...
0
votes
0answers
8 views

Views aggregation for taxonomy based results in views working

I have created a view which lists contacts and groups them by office. However some contacts show up multiple times (I'd assume that is since some use taxonomy for their job titles, and some have more ...
0
votes
0answers
55 views

Taxonomy terms and vocabulary in form selection

I 'm trying to insert vocabulary terms in my form Only one term appears, but there are more of it. Here is my code in .module file <?php use Drupal\Core\Form\FormStateInterface; /** * ...
0
votes
1answer
44 views

Hierarchy of content types with taxonomy as parent

What would be the best way to implement a hierarchical structure like this: (A) Taxonomy term from single vocabulary (B) Some content type with parent of type A (C) Some content type with parent of ...
0
votes
1answer
13 views

Include referenced term's custom fields in node view with content display

I have a taxonomy term reference field in a node (D8). I have a content (node) view that needs to use a content display rather than fields. The term is selected, but not the custom fields that have ...
0
votes
2answers
56 views

Categorized view for an entity reference content

I am trying to implement a Magazine in Drupal 9. I am confused about whether to use taxonomy term or content type since the data I want to handle is used for both categorizations and storing of ...
0
votes
2answers
23 views

Display only taxonomy parents from an entity reference field

Is there a taxonomy entity reference field formatter to display only taxonomy parents from hierarcherical taxonomy elements ? Else what could be the way to display, from an entity reference field, ...
1
vote
0answers
17 views

Using Taxonomy in drupal

I need to create a custom form with a vendor dropdown ("Vendor A", "Vendor B") and a list box with multiple options belongs to selected vendor. Once a user select Vendor from dropdown, list box will ...
0
votes
0answers
20 views

Display taxonomy field in view on content page [duplicate]

Using Drupal 8.8.1, I am trying to display taxonomy fields in views on content pages tagged with that taxonomy. Essentially the content page would have an image header from the taxonomy image field, ...
0
votes
1answer
32 views

Migrating content with referenced taxonomy field is to be migrated by term name

Is it possible to migrate content with term reference fields, but instead of referencing terms by their tid they are referenced by their term name? instead of this: field_tags: plugin: ...
0
votes
3answers
22 views

Creating a view which lists all taxnomy terms and the number they appear in a content type?

So i have a taxonomy called Product Warnings, and it has around 10 terms. This taxonomy is referenced in several content types (Small products, Large products, etc), and can be selected multiple times ...
0
votes
0answers
9 views

How do I restrict access to a taxonomy/term page?

My drupal expert left, and I found my taxonomy term page is visible. I found this possible solution on your site, but can you tell me how to restrict the access please? 14 A lightweight solution is ...
-2
votes
1answer
46 views

Creating content with a hierarchy

I want to create hierarchical content in Drupal, and I am trying to decide between nodes and terms. What I want to do I want to implement books. Each piece of content may be a book (containing ...
1
vote
3answers
64 views

For content, what are the differences between nodes and terms

I am debating whether to use nodes or terms to store a large amount of content in Drupal. There are a lot of similarities between nodes and terms in Drupal 8/9: Both can add any type of field. Both ...
0
votes
1answer
28 views

How do we fetch the list of all content types refererencing a particular taxonomy vocabulary?

I am trying to delete a taxonomy vocabulary but before doing that, I want to know if there is any content type with a field referencing a taxonomy vocabulary. My first thought was using a view, but ...
0
votes
1answer
26 views

Add new items to a multivalue field instead of override existing values [closed]

I have an Article content type with a multi-values taxonomy reference field (field_article_countries) for the Countries vocabulary. I also have a Book content type with a multi-values taxonomy ...
0
votes
2answers
26 views

How to check if a Vocabulary is translatable?

In Drupal Core, I found the following code: $entity instanceof TranslatableDataInterface && $entity->isTranslatable() But it looks like it is not working for the Taxonomy vocabularies
1
vote
0answers
54 views

How do you call an install function that did not run during install?

I am using the Currency Taxonomy module to get all valid currencies around the globe as taxonomy terms. On installing the module, I got the taxonomy vocabulary but not the terms. The code to add the ...
0
votes
0answers
12 views

Translated taxonomies are not showing in the view

I have set up a multilingual site. I have translated the taxonomies but when I see the page in french the taxonomy are in English. I am using views to display the content in the table. you can visit ...
0
votes
1answer
29 views

How to get Taxonomy Term Field Value in twig

I have a taxonomy term with the name 'Colors' and it has 1 image field called field_color_image. In my project I have a node type with a field type of Taxonomy term that refer to Colors. My aim is ...
1
vote
0answers
26 views

How can I tablesort by term weight instead of term name?

I've got a View for Nodes and display some fields as column. All columns should be sortable. One field is a term reference. In order to sort the terms by names I create a relationship on the ...
0
votes
1answer
31 views

Need help with taxonomy term creating a users view

I have a taxonomy field in the user registration form called location, I have a view listing all location terms (taxonomy terms). I'm having trouble linking the terms to a view (containing the users ...
0
votes
1answer
14 views

How to display parent term name of a term located in a paragraph?

I have a vocabulary for employees, which has a paragraph field. In this paragraph entity, I have two fields. One for date and one for the job title. The hierarchy goes like: company > department > job ...
0
votes
0answers
6 views

Display related content by taxonomy and children and also hide specific child taxonomy

I want to be able to display related tagged content by taxonomy and Children. I have this working with has taxonomy id with depth. Now I want ability to also hide specific children tags. On a node ...
0
votes
1answer
39 views

How to restrict taxonomy term reference with certain terms?

In a node edit/add form, I need to show a field with dropdown/select list options (Cardinality unlimited). I do not want all the taxonomy terms of that vocabulary to appear. I want to show certain ...
0
votes
0answers
10 views

Sort tags in a view by the number of content they are displayed in

I'm trying to make a view that would display only name of tags and the number of content that uses that tag. I have managed to do this following this tutorial: https://www.youtube.com/watch?v=...
1
vote
1answer
36 views

Config Export: How to store default value of taxonomy field?

When I define a field with taxonomy term fields, I can set a default value depending on the available terms. Since the terms themselves are content, they are not stored via configuration management. ...
0
votes
0answers
20 views

Migration hierarchical taxonomy terms with same terms (without unique id)

Hello I'm using the Migrate module in Drupal 8.8.2 Currently I am working on a migration of products via an XML file. The products are available in different coatings an colors. The hiëarchial ...
-2
votes
1answer
38 views

How can I delete vocabulary terms at a certain level?

I know there are several threads here about deleting terms with various techniques; I'm going to experiment deleting terms with drush at a certain level, say level three terms and below in the ...
0
votes
0answers
10 views

A different set of terms for each group?

I am considering to use de group-module to organize nodes by department. Each department has different taxonomy terms to classify their nodes. The goal is to have them describe their howto's and ...
0
votes
0answers
15 views

Display the terms of 2 different entity references assigned/contextual to a node (display distinct and grouped)

I cannot manage it to list terms of two different entity references contextual to a Node in a distinct manner in one View (with two different views its no problem at all). I have an entity reference "...
0
votes
1answer
12 views

Drupal 7: How can I display nodes of specific author in a taxonomy term?

I've a question about taxonomy terms. In my organization I've actors that work for me and, for each actor I created a taxonomy term containing some information, such as bio, an image etc. Each actor ...
0
votes
1answer
33 views

Limit entity reference options base on taxonomy tag

I have three content types. Building, Department and Person. I connect this contents whit entity reference base on Content types. The problem is that I have a lot of persons and a lot of departments ...
0
votes
0answers
41 views

How to show dropdown list of child terms related to parent term?

I know, it is possible to complete this issue by using views. But in this case i can only display an unformatted list of "child terms", not SELECT MENU. I need to show DROPDOWN list of relevant child ...
-1
votes
1answer
14 views

Categories REST API relation with Blog Posts

I am new to Drupal. I am trying to create a news app with Drupal as back end. I created a Category Taxonomy and attached it with Articles Content type. Then I created View for Articles Rest api and I ...
0
votes
0answers
26 views

Taxonomy term name in page.html.twig [duplicate]

I have a list of taxonomy terms to make some categories on my website. When I click on one of them, the content appears, but I can't display the taxonomy term name. I can't find the right ...
0
votes
0answers
10 views

Reference field on Taxonomy term for selecting one of all nodes using the term

I have a taxonomy called categories. Node type article can use these terms. In the term edit form I would like to be able to select one of all nodes using the term (to pick one main article for each ...
0
votes
0answers
7 views

When terms are deselected in the term reference field, the referenced node still shows

I use the Term Reference Field in my content types to attach nodes to a specific term. I then use the View with the description "view to emulate Drupal core's handling of taxonomy/term", to show a ...
0
votes
1answer
52 views

On content, choose the taxonomy parent and display all the children

I have a content type with a taxonomy field based on a hierarchical taxonomy with 3 levels. I use Simple Hierarchical Select (SHS) to select and display the terms. I want to have a view that ...
0
votes
2answers
23 views

Taxonomy term parent widget alternative

I have a huge hierarchical vocabulary of terms and adding a new child to a specific term can be hard using the default multi-value select list widget. Can I use an autocomplete widget or -better- an ...
1
vote
1answer
66 views

How can you reference taxonomy term by another field in Yaml file?

I created my own Yaml file with fields inside to migrate nodes. I run into this problem. If I use the feeds module, I can set (during mappings) that a given field (taxonomy term reference field) can ...
1
vote
0answers
27 views

Add CSS class to entity reference (taxonomy type) rendered as a field in a node

This is my first question on the forum. I am currently developing a site (Drupal 8.8.1). I am developing it in a sub directory on the server and not using Drush, the server belongs to a large academic ...
1
vote
1answer
10 views

Group content by taxonomy term, but then also list all terms in each row

I'm looking for help with creating a view. I have a content type, Thing. Thing has a field on it where you can select multiple terms in a taxonomy, Category. I want my view to look like this: ...

1
2 3 4 5
69