"Taxonomy" refers to Drupal's content classification mechanism, organised into vocabularies (categories) and terms (sub-categories).

learn more… | top users | synonyms (3)

1
vote
0answers
14 views

Drupal 8 View - get url field

How do I get the URL, not the link html for a taxonomy field in my view. For Drupal 7 I found this ticket: How do I get the raw URL as a field in Views? This mentions getting the content: path - ...
0
votes
1answer
12 views

How to access referenced entities programmatically

I have an entity (a node) with a term reference field. I'd like to access the referenced term entities programmatically, i.e. the fully loaded term objects. Note that my question could equally apply ...
0
votes
1answer
19 views

Sort content in a view by taxonomy term and use terms as headlines in drupal 8

Say I have a content type books and a taxonomy vocabolary book categorys i.e. book categorys: - Novel - Short Story Now, what I would like to display in a view is: Novel Novel 1 Novel 2 ...
0
votes
0answers
5 views

Taxonomy tokens are not available in views bulk operations

I am trying to rewrite taxonomy term names and I'm using views bulk operations. I need the term name token to be available, but all I'm getting is site info tokens. I know that the order of the ...
1
vote
2answers
22 views

Creating a “Related pages” view which also excludes the current node in Drupal 7

I want to create a view-block of related articles. The base for distinction is a given vocabulary. The node which serves as base to such related content list should be excluded from the list. I ...
0
votes
0answers
10 views

Taxonomy Autocomplete - field not found

If I understand correctly field_info_field loads field information from cache. The problem occurs when trying to reach a taxonomy autocomplete for field abc:def where abcis a field collection and def ...
0
votes
0answers
19 views

How to add taxonomy in custom form

I want to add taxonomy in my custom form using hook_form(&$form, &$form_state), I did some code but it is not working $form['reporting_officer_organization_info']['user_belongs_to'][26] = ...
0
votes
0answers
4 views

Taxonomy field migration D6 to D7

I have upgrade D6 to D7 by following exact steps written into upgrade.txt. In D6, there was a content type with 5 various vocabularies assigned to it. But after upgradation to D7, it shows a single ...
3
votes
2answers
44 views

Related Content View with multiple Entity Reference Fields

I am trying to create a View to display related content based on shared taxonomy terms from multiple vocabularies. For example: I have two content types called Car and Parts. I have two ...
0
votes
2answers
141 views

How to print Taxonomy Terms in Templates?

How can I display Node Taxonomy Terms in drupal 8 Templates. We do this in Drupal 7 by add this code to node.tpl.php file: print render($content['field_tags']); I tried adding the below code in ...
0
votes
1answer
15 views

Get created term entity after creating term programatically

I'm writing a custom Drupal Console command to import user data from a text file and create users, and as part of the process, I need to add data to a term reference field. In the case that a term in ...
0
votes
0answers
16 views

better exposed filter ajax call was very slow [duplicate]

I have an exposed auto-complete taxonomy filter, It takes time(5 to 6sec) to load the values. How to increase the performance to load the values quickly.
0
votes
1answer
12 views

Dynamic configuration form

i need to do a configuration file wich allow an admin to select a lot of terms from a vocabulary. Then i want to make a form with 2 select field : Vocabulary and Terms. So, i can select the vocabulary ...
1
vote
0answers
8 views

Drupal 7 Views Contextual Filter Override Title, but Make Singular

I have been able to setup a view that uses contextual filters that are taxonomy terms. The terms are categories and as such are written in the plural form, for example, "Posters" or "Flyers". ...
0
votes
0answers
23 views

Add a class to parent taxonomy terms only

I have some working code that first capitalizes all the parent terms. Now I need to add a class to it so I can finish styling per requirements. // Module to capitalize the parent name on node/add. ...
1
vote
2answers
28 views

Views taxonomy for multiple content types

I have three different content types: News, Events and Resources. They all use the same set of taxonomy so that all content is tagged with the same categories. I want to build a view with the ...
0
votes
0answers
17 views

Cross vocabulary relationship

I have multiple vocabularies: Year Model Origin Make Model Variants Year Model: 2016 2015 ... 2002 2001 Origin: American Asian European Japanese Make: Audi BMW Chrysler Dodge Ford ...
0
votes
1answer
45 views

Force native taxonomy term pages to only show <H1> and not all content

How do I force the taxonomy term pages to show only the H1's and not all content (all the nodes) associated with the specific term? When I searched the UI I couldn't find a way to do so. Maybe it is ...
1
vote
2answers
33 views

How to display the TID of a term reference field in a content type?

In Drupal 8, I have a blog content type with a taxonomy term reference field called category. How can I print out the Term ID of the taxonomy term of the category field in my node.html.twig file. I ...
0
votes
0answers
11 views

How can I print taxonomy id of a blog category field in a node

Please, how can I print the taxonomy id of a blog category field in the node template? Using {{ content.field_category }} prints the term name but how can I get the unique term id instead?
3
votes
1answer
46 views

Programmatically delete taxonomies

Taxonomy vocabularies are in the CMI as of Drupal 8, but I want to also keep the Taxonomy terms in code. I am programmatically creating terms in a custom module. function taxonomy_vocab_install() { ...
0
votes
1answer
16 views

Contextual filter for taxonomy terms

I have a taxonomy terms display that list a taxonomy_list, this taxonomy_list has parents and childs: Parent child Parent child child Is there a contextual filter in views that i can use to pass ...
0
votes
0answers
13 views

How to show top level parent terms for a node in views 7

The taxonomy has the following structure Parent1 child1 child2 Parent2 child3 child4 If the node is assigned child1 then I want to show the term for node as Parent1 and if node is assigned ...
0
votes
0answers
9 views

Unable to make Term Reference Field Sortable in Views

I have a View that uses the 'table' format to display results. The problem: I have three fields visible to the user. I've made two of my fields sortable in 'format: settings > sortable'. However, I ...
0
votes
1answer
30 views

How do I assign 'all' term to a node?

I have a vocabulary (lets name it as 'Brands') which is getting filled by adding terms while creating a nodes. I have a view which shows me the list of those nodes. This view has an exposed filters ...
3
votes
2answers
53 views

8 - How to programmatically add terms to an existing Node

After loading a node with Node::load with an existing taxonomy field abc do I add a new term and save? Something like? $term = Term::load(123); $node->get('abc')->appendItem($term );
1
vote
2answers
28 views

How to “close” from view standard taxonomy page

I made several taxonomy dictionaries and all of them have terms. I use terms for Views generations. But standart drupal functionalaty lets end-user to enter as URL: "site/dictionary name/term name" ...
2
votes
1answer
24 views

Retrieve translated taxonomy term in current language programatically

How do I retrieve a specified taxonomy term translated (if translation exists for this term) from the current language context programmatically with D8?
0
votes
1answer
52 views

Taxonomy terms with associated nodes: display page by page navigation in node page?

Hi i have a content type called Product and have fields(title,description,code,image) and also have vocabulary categories like below formate parent term 1 -child term 1 --sub child term 1.1 ...
0
votes
1answer
24 views

Taxonomy List in node/add Capitalize all letters in the parent only

I have a strange customer request for a taxonomy list users select from while adding content. The request from the customer is have the parent vid show up in ALL CAPS and the children to be left ...
0
votes
0answers
18 views

Getting Taxonomies from Taxonomy

I'm somewhat new at Drupal, so please forgive me if this question is obvious. I have two taxonomies: program and division. Each program taxonomy has a field that related it to a division. I have ...
0
votes
0answers
28 views

How to import taxonomy with hierarchy using migrate - Drupal 8

We're upgrading our site from D7 to D8, which has vocabulary containing multi-level parent-child hierarchy. The list is too long (around 5K-10K terms) to import manually. We've tried using migrate in ...
0
votes
1answer
24 views

Customizing taxonomy Term page with sticky articles

I am trying to create an educational website. I have created terms as History, Science, Biology, Mathematics and Mathematics term, sub-term as Algebra, Trigonometry I want to create a separate page ...
0
votes
1answer
17 views

Is there a limit on taxonomy hierarchy depth by default?

Title says it all. Is there a limit on a taxonomy hierarchy depth by default? This question's answer states that the default limit is 9 due to database table structure, but I successfully nested 10+ ...
0
votes
0answers
25 views

Why should I choose for Taxonomy when I can create an Entity Type instead?

I am using ECK entities and number of entity bundles. For a list of 'nameservers' that I use, which does not require else than a title and IP address as fields, I could use a Taxonomy or create an ...
0
votes
1answer
27 views

How can i display child terms under parent terms and assigned articles using entity field query?

Hi i have one content type with two vocabulary term references one is called category and terms is A,B,C like the 2nd one resources it contains parent with child terms like below hierarchy Resource ...
0
votes
1answer
25 views

Display of View (using grid) is unevenly distributed

Note: as a neophyte user, I'm not allowed multiple links or images. It has been suggested that I edit the hyperlinks so they're not quite right. Hopefully you can sort out what's going on. Here is my ...
0
votes
0answers
23 views

Entity Translation and Taxonomy

I'm having hard time integrating Entity Translation module with tags (Taxonomy and TagClouds modules). I want the following: Cloud of tags to be showed on the site Tags must be translatable, i.e. ...
0
votes
1answer
69 views

Create node programmatically with menu entries

I created an action in Rules, which generates a duplicate of a node. If I am creating a node of the type "basic", it will duplicate the node for every taxonomy term. So when I have a node with three ...
3
votes
1answer
14 views

Exposed filter list by tags

I have a view, which is listing nodes. I like to exposed filter it by tags (what is a taxonomy). But I like to show tags, what is relevant (has nodes) for the current view. How can I make it?
0
votes
1answer
22 views

Custom Taxonomy Term Template

I would like to use a custom template for my taxonomy term pages. I attempted doing so by creating a hook in template.php like so function mythemename_preprocess_page(&$variables){ if($hook ...
0
votes
2answers
26 views

Product page on brands block

I created pages for brands that I sell on my shop. Each product is associated with a brand taxonomy term. I created a view block that displays pages of brands. The block is displayed throughout the ...
0
votes
2answers
47 views

How do I display the absolute URL of the terms?

I have a view displaying a list of my taxonomy term (term name with link). How do I display the absolute URL of the terms? This is the exported view I am using. $view = new view(); $view->name = ...
0
votes
1answer
28 views

How to override confirmation messages when saving or updating content in Drupal 8?

I've got a few taxonomy vocabularies, but the confirmation message on save/update is generic - Created new term %term. or Updated term %term.. Those messages come from \Drupal\taxonomy\TermForm. Usage ...
1
vote
1answer
30 views

field collection - taxonomy term can't display

I used taxonomy term with field collection and taxonomy term can't display look this video https://www.youtube.com/watch?v=cEI1yDcJXT4
1
vote
1answer
19 views

Allow users to access only terms that he created

Terms from user that created nodes are stored in vocabulary tags. When user creates new content i would like to allow him to only choose from list of terms he created instead of whole vocabulary. Is ...
0
votes
1answer
20 views

how can i get path vocabulary based taxonomy term with node title using views?

I have created vocabulary called Category and it contains below hierarchy term1 term 1.1 term 1.1.1 term 1.1.2 term 1.1.3 term 1.2 term2 and i have assigned to this category to ...
0
votes
0answers
17 views

field collection - taxonomy terms [duplicate]

I used taxonomy term field with field collection and taxonomy term id not attached on node id. taxonomy term cannot get result. look video! used D8 but in D7 have the same problem. the same problem ...
0
votes
0answers
59 views

Drupal 8 View for Taxonomy terms (vocabulary)

How can I output nodes which linked with taxonomy term through a view? How can I link taxonomy vocabulary with a view wich will output appropriate nodes for each term of this vocabulary? In Drupal 7 ...
2
votes
1answer
27 views

display data (taxonomy terms) after uploading it directly to the database

I have created a taxonomy vocabulary and then uploaded via mysql all the needed tables for the different fields. I have created a view where I can see all the terms of the vocabulary, but if I go to ...