Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
5
votes
4answers
272 views

How to sync a taxonomy between Drupal and a 3rd-party system?

I have a custom made system (non Drupal) that has a taxonomy like: Element 1 Element 1.1 Element 1.2 Element 1.3 Element 2 Element 2.1 Element 2.2 Element 3 ... And I have a Drupal ...
5
votes
3answers
3k views

How to retrieve all nodes for a taxonomy term using Services?

I want to retrieve all the nodes associated with a given taxonomy term (field_term) using HTTP GET. I have tried: curl -v http://myserver/endpoint_path/node?parameters[field_term]=1 but I get an ...
5
votes
1answer
7k views

How do you strip HTML from the node summary that appears on taxonomy node listing pages?

I've tried using hook_preprocess_node() inside of a if statement for arg(0) == 'taxonomy', but changes to the node aren't carried through to display. What is the best way to make the teasers appear ...
5
votes
1answer
197 views

Reset Drupal 7 Site: NIDs, Revision VIDs, Taxonomy Term and Categories, etc

Is there a way to keep an entire Drupal 7 site intact, excluding content? Basically after creating a test environment with many nodes, terms, revisions, etc, I would love to be able to delete all the ...
5
votes
2answers
2k views

Autocomplete term widget (tagging)

I was using the "autocomplete term widget (tagging)" as widget type for a term reference field. I found out that the when I set the maximum number of allowed values to more than one (i.e multiple ...
5
votes
2answers
3k views

How do I debug my Feeds import not importing a field

I have a Feeds import set up to import products into Drupal Commerce (from csv). My product type has a number of term reference fields that also need to be assigned a value by import. Most of these ...
5
votes
4answers
1k views

Previous/ next navigation in taxonomy terms

Due to some complex project, I would like to organize navigation between taxonomy terms programmatically, with generation of custom links. Example of navigation I need in vocabulary "fruits" with ...
5
votes
2answers
4k views

How do I properly pass taxonomy term from panels to the context filter in views?

I have a Book Listing content type and a Series content type. Both of these have a Book Series taxonomy term applied to them. What I want to do is override the Series page with panels and embed a view ...
5
votes
2answers
2k views

Node display mode on taxonomy page

How do you choose the display mode for a node that is used on an taxonomy page? As default the nodes are displayed using the node-teaser mode but i would like to create a custom style for nodes that ...
5
votes
1answer
2k views

How to disable status messages?

I am creating/updating terms and nodes dynamically using code. It shows a lot of status message as usual. But I need to hide those message only for this task. That means if any user creates/updates ...
5
votes
1answer
359 views

Site building process: what is the relationship between CCK, Views, Panels, Blocks and Taxonomy?

A beginner question. I need to understand the relationship between the top Drupal structure modules: CCK, Views, Panels, Blocks and Taxonomy, i.e., when building a website, what is the general steps ...
5
votes
1answer
2k views

How does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms. The issue I'm having is the vocabulary is not available upon install. My module ...
5
votes
1answer
4k views

How to create relationships between Taxonomy vocabularies?

I'm trying to build a site with similar content conventions to Craigslist. The problem is, I don't really know a good way to create multiple vocabulary relationships in drupal. Here's the end result I ...
5
votes
2answers
2k views

Programmatically alter taxonomy term tree options

I have a taxonomy term reference field in a form. This field has many options and I'm using the term_reference_tree module to display them. I'm trying to add a filter to this form so it only displays ...
5
votes
1answer
783 views

Taxonomy Terms node count of different content type

Hi I have a issue for which I searched everywhere but not getting any solution, I have two content types Store and Deals with the following fields Store is having the fields 1.Store-title 2.Logo 3....
5
votes
1answer
4k views

Custom Views filter for multi-level taxonomy

I'm struggling to set up two kinds of views for displaying multi-level taxonomy. One would list terms that are final nodes, and the other would list nodes that have children. Somehow, I can't. I ...
5
votes
1answer
2k views

View for Taxonomy terms?

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 ...
5
votes
3answers
3k views

How to order views by taxonomy term name?

for some reason the sort criteria by taxonomy term field do not work properly. This is the view: Here you can see the field I order by. The options of the field is the default. Only one taxonomy ...
5
votes
1answer
942 views

Empty taxonomy pages

I am having a taxonomy problem that I can't figure out and my searches haven't helped. Basically, I have created a taxonomy to tag my pages and I can use this field with views etc without any problem....
5
votes
4answers
2k views

Services 3: Setting taxonomy terms on node creation/update

For a custom node type, I have defined a field that is to hold an unlimited number of values from a taxonomy vocabulary that I defined. This is what it looks like: [field_taxonomy] => Array ( [...
5
votes
1answer
3k views

Term reference field: Checkboxes with add new textfield

I need to change the presentation of a Term reference field. Drupal 7 has 3 widget types: Select list Check boxes/Radio buttons Autocomplete term widget I need to display check boxes to select 1 or ...
5
votes
1answer
1k views

Sort an entity query by a term reference field's term weight?

I've created an entity query to get an array of nodes based on a specific content type,see below: $query = new EntityFieldQuery(); $query->entityCondition('entity_type', 'node'); $query-&...
5
votes
1answer
3k views

Override the taxonomy pages

In Drupal 7, you can use taxonomy-term.tpl.php to override taxonomy pages. Inside the taxonomy-term.tpl.php page, you can use <?php print $term->field_NAME['und'][0]['value'];?>to print out ...
5
votes
2answers
2k views

Fatal error undefined function taxonomy_get_tree()

I want to write a module that makes a select search form based on taxonomy terms. (with hierarchical select boxes) This is on drupal 7.0 and status is up to date. The form is made and Ajax is properly ...
5
votes
1answer
821 views

How to display node's taxonomy child items in node using views for multiple parents

I have a vocabulary with child terms term -child_term -child_term_1 -child_term_2 -term_1 -child_term -child_term_1 -child_term_2 Nodes have multiple parent terms assigned. The goal is to display ...
5
votes
1answer
692 views

Dynamically loading terms in a term reference tree from a huge taxonomy so users may select nodes as options

I'm trying to create a form that uses a bushy taxonomy of about 30,000 (max depth is ~9) terms to allow users to select multiple nodes from the tree. The Taxonomy Term Reference Tree Widget fits the ...
5
votes
1answer
416 views

Add taxonomy terms to files

Is it possible to add a taxonomy term to a file that it is uploaded to the site? If not I imagine that I would need to create a content type to encapsulate the file and tag that.
5
votes
1answer
4k views

Apache SOLR + Facet API + Taxonomy terms

I want to create a product catalog and I have been told that apache SOLR could be the best way to go. I installed Drupal Commerce, Apache SOLR Integration (7.x-1.0-rc2) and Facet API (7.x-1.0). I ...
5
votes
2answers
4k views

how to create view that display just 2 level of taxonomy vocabulary

i have a vocabulary that contain plus of 5 level descendant, i need to create the view to display the first 2 levels and grouping by the first one, i do this: FIELDS: (Parent) Taxonomy term: Name - ...
5
votes
1answer
1k views

autocomplete tags in textarea?

I need a tagging functionality for my content type. The normal term reference tag autocomplete widget has a problem, because I can't find a way to use textarea instead of textfield for it. I would ...
5
votes
2answers
4k views

Taxonomy sorting in view

I am a Drupal newbie using Drupal 7. I made a taxonomy for documents, and then a view in the views module to list the documents. When the view searches by the taxonomy term, it seems to sort by the ...
5
votes
1answer
2k views

Term reference with filter

I wonder if it is possible to add a term reference field with just a subset of the available taxonomy terms. Let me explain. I have a taxonomy vocabulary with a structure like this: - term 1 - term ...
4
votes
1answer
11k views

how to get parent tids of a taxonomy term

I used this code to get the parent ids , but the result is a huge object . how do I get the parent id's and term names from the resulting object ? $ancestors = \Drupal::service('entity_type.manager'...
4
votes
3answers
4k views

How do I show the number of nodes using a taxonomy term?

Somebody asked Views and node count for taxonomy terms. I am trying to do the same, but with Drupal 8. I follow the steps reported in that question, and I get a count of the taxonomy term (say "fruit"...
4
votes
2answers
13k views

Array to string conversion in DrupalDefaultEntityController->cacheGet()

I have a content type that has a multi-value taxonomy field. When I create a new item and select several values, I am presented with the following error: Array to string conversion in ...
4
votes
2answers
2k views

Entity reference widget

I know that in Drupal 8 the taxonomy term reference is deprecated and it's implemented by an entity reference in Drupal 8 Core. Is there any widget to select items by checkbox list instead of the ...
4
votes
1answer
7k views

How can I display a taxonomy term's parent ID in Views?

I am using a JSON plugin to Views to output taxonomy terms as a JSON object for Javascript manipulation. I was to be able to include the parent ID in this output. In view I see "Taxonomy term: Parent ...
4
votes
1answer
4k views

How to get the field settings in drupal 7

Here is the scenario. I have a taxonomy term reference field, which is referenced to a taxonomy vocabulary, for example it is associated with category vocabulary. Now I need to fetch the vid of the ...
4
votes
3answers
5k views

How do I theme the teaser?

As shown in the picture, I have the teaser view of a taxonomy term (Virtual Tour) which shows the node title, the node summary, the submission date, and an image added in an image field. What I would ...
4
votes
2answers
7k views

Create Alias URL to taxonomy term page with TID

I am trying to figure out how to create a url-alias friendly url to a taxonomy term page with only the tid of the term. I know drupal does this automatically in the node, but I am trying to do this in ...
4
votes
2answers
5k views

How to set the ordering of a taxonomy term's listing page

When you click on a tag term (or any other taxonomy term), a page is displayed listing the nodes tagged with that term. How can the nodes be displayed alphabetically? The only module that looks like ...
4
votes
2answers
3k views

Programmatically add a taxonomy term as entity reference in a custom entity

I'm really struggling to add a taxonomy_term as an entity reference to a custom entity I've created programmatically. Here is my configuration based on BaseFieldDefinition (the name of the vocabulary ...
4
votes
1answer
2k views

Issues with Term Reference and Multilingual Taxonomy

The issue: We have a multilingual Drupal 7 website which allows users access to a content type e.g. Blog - where they can use /node/add/blog and node/*/edit in their chosen language A taxonomy has ...
4
votes
4answers
630 views

Should I change multiple text fields values via MySQL or is there any other preferable way?

The site has a content type and this content type has two fields: Text Field Term Reference Field There are thousands of nodes on this content type and I want to change some values (find/replace). ...
4
votes
1answer
1k views

How do you theme the taxonomy description field?

I need to theme the description field on a taxonomy page. I've tried field--description.tpl.php with no success. Also, do I also copy the contents of /modules/field/field.tpl.php as a default ...
4
votes
4answers
5k views

Disable taxonomy pages

Are there any way to disable the taxonomy pages? I saw a question that restricts access to them (Original question). But I dont want the "access denied" message to be displayed, I want to remove the ...
4
votes
4answers
424 views

How to change a term URI based on content type

I have 2 content types (photos, videos) and both have a term reference to a "topic" taxonomy. The topic terms are showing on the node display pages and I would like to link to "/photo/%" for photos ...
4
votes
1answer
379 views

A view that displays content with taxonomy term of current user?

The Setup: A Taxonomy Vocabulary called "School" - During registration, users can choose multiple "Schools" from the taxonomy list to associate themselves with. A content type called "Lesson" - ...
4
votes
3answers
2k views

Change the error message “An illegal choice has been detected. Please contact the site administrator.”

When a user submits a content that has a taxonomy selection field and NOT make a selection, then the referenced error appears. Now, I know exactly when, how and where the message appears, is there ...
4
votes
2answers
1k views

How to delete taxonomy term?

I would like to delete taxonomy term. Unfortunately on taxonomy -> list I can only see "edit" button next to each term (under "operations"): How can I delete the term I added earlier?

1 2 3
4
5
69