Questions tagged [taxonomy-terms]

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

Filter by
Sorted by
Tagged with
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
3answers
6k 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 ...
3
votes
1answer
2k views

How to make a parent - child taxonomy list

How can I make a category page displaying all my 100+ taxonomy terms in a parent/child way (something just like http://www.dmoz.org/)? -parent --child --child -parent ...
3
votes
1answer
3k views

Check parent term when checking subterm

I have a client with a really large taxonomy, which is used for a certain node type. My client wants that the parent term of a chosen subterm, to also be used for a node. Let's say that this is the ...
3
votes
3answers
201 views

User roles and keeping their IDs when using features

I have defined some user roles and I'm assigning them to users through the rules module. I have created a feature with the rules and the roles and moved them to another site. My problem is that the ...
3
votes
2answers
7k views

How to query Nodes by a referenced Term Value (via EntityFieldQuery)?

I have to query my content types (firm_unit) based on different fields conditions, and for that I came to use EntityFieldQuery. $query = new EntityFieldQuery; $query ->entityCondition('...
3
votes
1answer
1k views

How to have parent taxonomy terms include their children terms' nodes?

I have a hierarchical taxonomy, and I'm currently using the Taxonomy Menu module to display navigation links. E.g. + Dairy * Milk * Cream + Fruit n Veges + Citrus * Lemon * Lime * ...
3
votes
1answer
1k views

How to migrate taxonomy with hierarchy?

I'm trying to create a hierarchical taxonomy from a perpared migration database table which looks like that: ID | NAME | PARENT ------------------ 0 | FOO | 1 | BAR | 2 | LORE | ...
3
votes
1answer
119 views

What is the feasibility of using Entity Reference instead of Taxonomy? [closed]

I read an opinion that argues for using Entity Reference to content types as a complete replacement for Taxonomy, on the basis of UX and performance. The UX issue appeals to me - happy content ...
3
votes
3answers
1k views

Filter by content type and shared taxonomy terms

I want to classify my content within the following categories: Technology International Politics Education Religion Sports They are shared among my content types (e.g. news, page). I want to create ...
3
votes
1answer
92 views

How to implement User roles for specific taxonomies?

Some info about what I'm working on: I have a taxonomy on my site called 'countries'. I have three 'countries' terms: "UK", "USA", "AUS" I have created a new user role in Drupal 7 called '...
3
votes
2answers
2k views

Views won't handle my pathauto pattern for taxonomy pages

I have two taxonomies on my site that need to be browsable independently using different Views. Therefor I decided to prepend the term paths with the vocabulary name. In PathAuto patter section I have ...
3
votes
2answers
3k views

Attach image to taxonomy term?

In my panel in "Taxonomy Term Template" I have shown the children terms in the current parent term page. Now I need to attach/associate an image to each term to make it look nice. I do see the option ...
3
votes
1answer
4k views

Pathauto taxonomy terms in content paths

I'm using pathauto and want to set it up so that when a new page is created (which has the taxonomy field) it will add the taxonomy terms into the url. For example, if I have the following vocabulary: ...
3
votes
1answer
534 views

Is there any way to validate taxonomy terms?

Is there any way to validate a taxonomy term before it will be saved? I'm using Simple Hierarchical Select with its "add new item" functionality. I would like to enable this option for registered ...
3
votes
1answer
723 views

Add class to term-reference output

I'm trying to add a simple class to a link outputted via print render($content['field_tags']). I'm using the Bootstrap theme. These are the approaches I've tried so far: Hooking into ...
3
votes
2answers
1k views

Grouping a View by Taxonomy term with multiple values without listing the term more than once

How do I stop a Taxonomy vocabulary's terms being listed multiple times when I group a view's results by Taxonomy term and instead list the content type multiple times under single terms. For example, ...
2
votes
2answers
2k views

Grouping Taxonomy terms by their parents

I have a Taxonomy Vocabulary for all types of cars. It has the following hierarchy: Main Brand 1 - Sub0 - Sub1 - Sub3 Main Brand 2 - Sub1 - Sub2 and so on... I want to have a webpage that displays ...
2
votes
0answers
230 views

Student TV channel - embedding YouTube videos

As you can guess from the title, I'm the new webmaster for a student TV channel and I need to update the site. The site needs to pull in YouTube videos from a channel, embed the video player and ...
2
votes
2answers
1k views

Title in url instead of tid?

How can I display the title in URLs instead of the taxonomy ID? www.abc.com/search-page?tid=01 should be www.abc.com/search-page?title=this-is-the-first-post. I am using Taxonomy Terms as Search in ...
2
votes
1answer
881 views

How to select an address field city from dropdown list?

I am using Address field module to populate address. A requirement needs to limit cities to a particular set, and also countries to particular set too. so I would like to present a set of cities in ...
2
votes
2answers
1k views

How to add a css class to the nodes in the front page according to taxonomy of each node in drupal 7?

in the front page, I have displayed multiple nodes (article) in the teaser view, each article has taxonomy. I want to theme each node teaser according to the taxonomy it has, I think it can be done ...
2
votes
5answers
2k views

Blocking access to taxonomy pages

I'd like to block access to all taxonomy pages for anonymous users. For example I don't want them to be able to view http://website.org/category/year/2525 or http://website.org/taxonomy/term/42. Is ...
2
votes
1answer
1k views

How can I add multilingual taxonomy breadcrumbs?

I have a site with two languages and a large number of taxonomy terms. I want to use breadcrumbs on my taxonomy pages, but I can't find a system that works well with multiple languages. I translated ...
2
votes
2answers
1k views

How to display term images instead of term names in the term selection process?

I have a content type with a term reference field (check boxes widget, vocabulary: Category) from which every user has to choose one term to be attached to his node. I have also added an image field ...
2
votes
2answers
2k views

How to display list of nodes that share the same Parent taxonomy term as current node

I have a vocabulary set up called (for example) "Produce". And it has parent terms like "fruit" and "vegetable". Child terms are like "banana", "apple" and "cucumber", "squash". Whenever I create a ...
2
votes
1answer
627 views

Setting up catalog taxonomy

I'm fighting with pathauto patterns for a particular content type. The content type is bound to a taxonomy (a product catalog). I thought that the taxonomy tree should only hold container items (...
1
vote
1answer
722 views

How to update table taxonomy_index when adding a node referencing a term?

I have two node types: Lesson and Exercise. A lesson contains several exercises, which are children. Lessons have a category field which is a reference field of type taxonomy term. Exercises point to ...
1
vote
1answer
922 views

URL alias for taxonomy in drupal 7

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 ...
1
vote
1answer
149 views

Views with filter on “main” and “additional” taxonomy terms

My articles are organised in a taxonomy, where each article has multiple taxonomy terms. I now want to build views for my front page, where each view represents a part of the taxonomy. However ...
1
vote
2answers
213 views

Mailing content to a list/group of email addresses

What kind of module should I use to send content to a list of emails? I need to create a groups with list of emails. I need to send it to one or a few of these groups. I need for admins to be able to ...
1
vote
1answer
496 views

Add tid or name as a class to each item of a taxonomy term

I'd like to add the term ID or the name of the term as a class to each one of my taxonomy terms on a node page. note that I'm not using views, so I wonder how can I achieve this via template.php or ...
1
vote
1answer
694 views

When using Rules to set a value on a taxonomy term reference field, I get choices like “field:0”, “field:1”, etc. What do these numbers mean?

When I add a "Set a data value" action for my taxonomy term reference field, Rules allows me to choose from the following: field-age field-age:0 field-age:1 field-age:2 field-age:3 What are these ":...
1
vote
3answers
2k views

How to create a view of hierarchical taxonomy terms and their nodes?

I'd like to create an HTML sitemap viewable by a human. I mention that I'd like to keep the hierarchy (tree structure of categories with subcategories) like the following: - TERM_A - Node a - ...
1
vote
0answers
2k views

How to remove link from rendered node title in view?

I have added a field to the view displaying a Taxonomy Term: Rendered Taxonomy Term http://freelance-graphic-designer.us/barmaiddev2/product-category/commercial-juicers I want to remove the link ...
1
vote
1answer
2k views

How to add exist taxonomy term field to custom form

It's possible to add exists taxonomy reference field to new custom form? For example: i have a term field named "field_tags" and would like to add to new form -> $form['node_taxonomy_term'] = // ...
1
vote
2answers
1k views

Programmatically create user reference field

I want to add a user reference field in taxonomy term. I create field and it's instance: $field = ['field_name' => 'mymodule_employee', 'label' => t('Employee'), 'type' => '...
1
vote
2answers
995 views

How to delete true orphaned taxonomy terms

I have a taxonomy vocabulary that contains a large number (5000+) of orphaned taxonomy terms. By orphaned I mean that they refer to parent terms that no longer exist, or refer to parents who are ...
1
vote
2answers
2k views

Remove child elements from Taxonomy List Exposed Filters

I have a view with (Taxonomy Reference Field) as Exposed Filter, The vocabulary contain parent terms and some child terms, I want to see the first level terms only and remove any children if any. ...
1
vote
1answer
1k views

Contextual filter in taxonomy- Drupal 7

I have vocabularies "destinations" and vocabulary "places". Destinations vocabulary is for example : Europe>France>Paris Place vocabulary is: museums, restaurants, pubs... I set the path pattern (url ...
1
vote
3answers
3k views

My hook_menu_alter() and page callback don't get triggered

This question relates to How do I redirect a taxonomy menu item to another path? I followed the recommendations of Clive and wrote a hook_menu_alter to provide my callback. function ...
1
vote
2answers
2k views

Link views page to taxonomy term page

I have created a views block and page to display nodes based on term of a taxonomy vocabulary (contextual filter). From this block I have a more link enabled and linked to the page. Here how to make ...
0
votes
3answers
168 views

Create a Term Queue on views

I have a views showing some selected terms of a vocabulary. The Views block is created using Taxonomy Terms as content(show). It showing order by the terms tree. But my client want to sort it as their ...
0
votes
2answers
1k views

Filter User in Views based on taxonomy contextual filter?

I have some users with taxonomy term reference fields. Lets say users can be associated with regions. When i view the user page i want to see all other users from the same region as the user i am ...
0
votes
2answers
44 views

How do I create a list of Nodes within a list of taxonomy terms, within a node?

I want to make an awards event where users can log in and nominate their products in specific categories. I have a node: "Awards Event" where the details of the event are defined I have a taxonomy: "...
0
votes
2answers
528 views

Twitter-like follow button

I'm trying to make a twitter-like "following" system for a content-type I have. Users have an entity reference to the content-type. What I want is a user to go onto the content and click the "follow"...
0
votes
1answer
77 views

How can I show referenced terms on other term page with view

My web site has two vocabularies for event content type. Vocabularies: City and Dance School. School terms use city terms. I want to show school terms as a list on city term page ( Eg. Newyork Dance ...
0
votes
1answer
243 views

What will be the post parameter when specifying vocabulary term?

I am trying to create a drupal node with a iphone app via rest server. I want to send the request to drupal as json. I have added a taxonomy vocabulary for categorizing the nodes. Specifying a ...
0
votes
1answer
221 views

Undefined index: und on search-result.tpl.php for Taxonomy Terms

I want to show the node title and related taxonomy terms in a table and modifying the search-result.tpl.php to do this. What I use to for taxonomy terms is that: <td class="field-item"> <?...
9
votes
1answer
768 views

How do I add a column to the table shown in the vocabulary listing page?

I need to add a column to the table shown in the page listing the vocabularies defined for a site. How can I achieve this?

1 2 3
4
5
7