Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
7
votes
5answers
3k views

Disable Taxonomy Generated Teaser List Pages

I have a site that uses the Taxonomy module to categorize content. The vocabularies and terms are used as arguments and filters in various Views. I do not want the Taxonomy module to generate its own ...
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
2answers
10k views

How can I get the parent term in a taxonomy with a hierarchy?

I have a node that is tagged with a taxonomy term which is part of a hierarchy of terms such as "state >> county." As the user has selected one of the "county" tags, how can I get the name of the ...
4
votes
3answers
3k views

Views relationship using taxonomy

I have two content types (document and employee) and both have a reference to a taxonomy (language). I would like to build a view showing all documents that a employee could read. In other words, both ...
4
votes
1answer
734 views

How to use url alias in views for taxonomy terms?

On a Drupal 7 site with pathauto installed I'm using a view to show all taxonomy terms of a given node. The terms are linked to the term's page. The problem is, that the path of those terms does not ...
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
1k views

Different view page based on taxonomy depth?

I'm wondering if there is a way to show a different view (or view part) based on the current depth of the term level? Example I have a bunch of categories and subcategories. For the categories I want ...
4
votes
1answer
945 views

alphabetize the taxonomy term page without views

Is it possible to alphabetize the taxonomy page without using views? for example: THE TERM'S NAME - A node - B node - C node - D node Thanks. CLARIFICATION: I know I can reset the terms themselves ...
4
votes
4answers
7k views

How to get taxonomy by URL alias?

I have a grade vocabulary with a 6. Class taxonomy term. The taxonomy page have an URL like www.example.com/foo/6-class/bar and I can't find the taxonomy with the following code. $grade = arg(2); $...
3
votes
1answer
94 views

Article view with links to other articles

So I'm trying to create a view which displays the most recent article belonging to a specific taxonomy term and pulls out just the links to other articles which have the same term. I want to display ...
3
votes
2answers
906 views

Autopopulate “Postal Code” from taxonomy in Location module

In Location module input I want to disable "Postal Code" field but the node will have a mandatory vocabulary selection (vocabulary name: Postal Code). What I want is that when I create a node with ...
3
votes
1answer
4k views

Are taxonomy fields exposed to views?

I am trying to create a view of nodes that have a taxonomy reference field. I can get the taxonomy term but do not see the taxonomy fields that I've created exposed to views. Google searches do not ...
3
votes
3answers
7k views

Customise Drupal 7 Taxonomy View / Template (without module)

How would I go about changing a custom taxonomy view / template without using a module? i.e. I have a taxonomy named 'tutorials' which has three posts. How would I modify the HTML output for '...
3
votes
1answer
183 views

How to set a new taxonomy term without overwriting an existing one when using Rules?

I'm using the Rules Action Set Data Value to set a taxonomy term for a specific user (uid= 75). The tag field exists in the user entity, and is set to "Unlimited". There's nothing complicated about ...
3
votes
2answers
359 views

Programmatically render HTML in taxonomy term description

I'm facing an issue where I'm attempting to programmatically set the description property for a taxonomy term that includes HTML, but the HTML is being rendered as text, rather than being rendered ...
3
votes
1answer
2k views

Theme a taxonomy terms page

How do I theme the tag/taxonomyterm page on my site? Can I use a panels page for this?
3
votes
2answers
4k views

Views taxonomy exposed filter, show tree/hierarchy in drop down menu

I have an exposed taxonomy filter that allows the user the filter by term. The vocabulary is 2 tiers, however in the exposed filter menu the hierarchy appears flat. Is there a method/module to show ...
3
votes
2answers
3k views

Views: How to display a grouped taxonomy list with node count?

I'm building a classifieds section of a website. Is it possible to create a grouped taxonomy list (by parents) with a node count at the end? Essentially this is what I want to appear: Currently, ...
3
votes
2answers
4k views

How to show children terms of parent terms in taxonomy?

Ok this thing is driving me completely haywire! I think this question has been asked before in some ways but I seem to be too dumb to tweak those to my requirement. I've created a taxonomy vocabulary ...
3
votes
3answers
4k views

Views: nodes grouped by taxonomy term

I would like to show nodes grouped (aggregated?) by taxonomy term like this: term 1 node1 node43 node34 term 2 node23 etc. but I am not seeing such grouping when I enable aggregation. I can get ...
3
votes
2answers
3k views

How to sort taxonomy terms on a term reference field?

I have a taxonomy term reference field on a node. On the "node/add" page I would like to sort the terms by "due date" (a field added to that vocabulary).
2
votes
3answers
1k views

term_reference field is not created

I set up the Services module as REST server, so I can create nodes with custom fields by REST client as in Services 3 - POST node.create with custom fields. The settings of the Services module are ...
2
votes
2answers
5k views

Views page list of all content grouped by taxonomy term

I have created a view in Drupal 7 that displays all nodes that contain a particular taxonomy vocabulary. The view contains a page in an unformatted list format set to show content | teaser. All I am ...
2
votes
2answers
1k views

How can I apply different templates based on taxonomy hierarchy?

I'm new to Drupal and I don't have extensive knowledge so I'm hoping I can get this question answered. I want the taxonomy pages of lower hierarchy to be displayed differently from the higher by ...
2
votes
2answers
992 views

How to show a description when a select box item has been selected

On my "node/add" form I have a "topic" taxonomy term field a user has to select. I would like to be able to display a description about a selected text next to the box, see red box ...
2
votes
1answer
2k views

How to display multiple taxonomy fields in a view

I have a view that display data from nodes (it's a listing of books). Next to each rows, I need to display some icons that represent different category per book. Per example, a book could have the ...
2
votes
1answer
4k views

Get current taxonomy in template_preprocess_html()

I have a custom field on my taxonomy that I would like to access in template_preprocess_html(). How do I get the current taxonomy id, in Drupal 8, on a taxonomy listing page?
2
votes
2answers
652 views

Rabbit hole: what's the recommended setting for content that should not be directly accessible?

I have one content type, as well as several vocabularies (taxonomy) that are only shown on the site through views and therefore should not be accessible on their own. I'm using the rabbit hole module ...
2
votes
1answer
659 views

How do I direct link a view to a taxonomy menu?

I have created a vocabulary with over a hundred terms on three levels (parent/child/child) and used Taxonomy Menu to create a custom menu. Selecting a menu item brings up a default menu page with ...
2
votes
2answers
365 views

Preview different then output in views

I'm a newbie in drupal. So I have this view which Im saving as a block and the way it displays in the preview of the view and on the page is different. Any ideas? If you have any questions about my ...
2
votes
4answers
1k views

How do I find if a taxonomy term is used?

I'm using drupal6 taxonomy.The content type 'B' is using a tag field which can use the title of the some of nodes of the content type 'A'.If any node of 'B' tagged a name or title of a node of content ...
2
votes
2answers
520 views

How to display a view link in another view?

I’m listing in a view a list of article filtered with taxonomy terms. The result is like this : taxonomy term 1 - article A - article B - article C taxonomy term 2 - article D - article E - article ...
2
votes
1answer
220 views

Edit content if (taxonomy) Country = United Kingdom

I have created a user, now I want to give him permissions so that, when he is logged in, he can view/see all the contents, but can't edit/publish/unpublish/delete them. Of all the contents, he can ...
2
votes
1answer
2k views

How to filter content by taxonomy term?

I'm using Drupal 7 and trying to filter my content based on taxonomy, but it looks like I can only filter based on status and type. Is there a setting or module that would offer more options to filter ...
2
votes
1answer
151 views

Having the NOT IN SQL query equivalent in a view

I have a site in which user can choose three programmes between 9. I would like to have a view that gives me the 6 programmes a user didn't choose. I've created programmes using taxonomy so each of my ...
2
votes
1answer
1k views

In Views, how can I show only the results for content that has been tagged with two taxonomy terms?

I'm using Drupal 7: I have a taxonomy term view that uses two contextual filters (i.e. taxonomy/term/%/%). Under 'Relationships' I have selected: 'Content: Taxonomy terms on node'. Under this ...
2
votes
1answer
165 views

How to get fields from taxonomy terms?

I am able to retrieve taxonomy terms programmatically, (as long as I only want to reference the default fields, 'tid' and 'name'). But how do I access custom taxonomy fields? $vid = 'MACHINE_NAME'; $...
2
votes
2answers
1k views

Term reference field lists the terms for all the languages

What I meant is that I have the i18n module installed and configured for content and taxonomies, this is what I need I have a taxonomy called "Colors" I have translated all the terms of this taxonomy ...
2
votes
1answer
5k views

“Taxonomy with depth” view

I have a taxonomy tree like this: balls basketball color red green volleyball color red green If a Taxonomy term has children, I want to show them; if there aren't children I want to show the ...
2
votes
2answers
769 views

How to move a taxonomy term from one vocabulary to another? [closed]

How can I change vocabulary of some taxonomy term? And keep all its data - tid, references, fields, alias and translations (except hierarchy)?
2
votes
1answer
40 views

Display content having the taxonomy of the logged in user

I need help creating a view in Drupal 7 with the following logic: My users have taxonomy reference field. My articles also have taxonomy reference field. When a user is logged in I want them ...
2
votes
1answer
189 views

Convert taxonomy to entity reference

I have a migration use case where I can't figure out a way to get along with: I have a Drupal 7 site which shall be migrated to D8. I don't want to migrate the content 1:1 but rearange some things to ...
2
votes
1answer
94 views

How to change taxonomy term path for table and grid view

I am using taxonomy term module. I have categories vocabulary and in term so many categories and I have created the view using taxonomy term. With two page first is in table format and another is ...
2
votes
1answer
3k views

Customizing a View with Taxonomy, color coding and icons

I have been searching for help with this and I am stumped. I am trying to create an attractive, styled table with categories of Web Resources and associated icons for each category. I currently have ...
2
votes
1answer
1k views

Add Taxonomy Term automatically based on term from user's account

I have a vocab called "state of residence" with states in the form of TN, MS, AL, etc. Each user account has one of these references to show the state of residence. I can also place this taxonomy ...
2
votes
2answers
8k views

Get taxonomy term ID in node

I have the following content types: hotels, and taxonomy terms; in hotels I have a taxonomy field. How do I retrieve the taxonomy term ID in a node? Is it possible to retrieve the self and parent ...
2
votes
1answer
50 views

Views with relationship of taxonomy terms

A node (Content 1) has two Tax-Terms (Category-Term 1, Category-Term2). The current relationship contains following entry: term from field_category and it's grouped via field_category. How is it ...
2
votes
1answer
714 views

IS there a replacement for 'taxonomy_node_get_terms_by_vocabulary' in Drupal 7?

The closest I have come is taxonomy_term_load_multiple but the conditions argument will be deprecated in V8. They now recommend EntityFieldQuery as a replacement. I am new to coding and have not ...
2
votes
1answer
493 views

How to get the autocomplete feature for a taxonomy term profile field visible on the registration form?

I have Profile2 and Profile2 Registration Path modules enabled, I set up two different profiles, and for one of them I created a field which is a taxonomy term with the Autocomplete term widget (...
2
votes
3answers
4k views

Views, Taxonomy, Block and Context… What am I doing wrong?

What I want: When I navigate to a page... Of a certain Content Type... which is tagged with a Term... I want a Block created via Views should generate a list of pages with that Term. I've adjusted my ...

1
3 4
5
6 7