Questions tagged [drupal-taxonomy]

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

Taxonomy is the practice of classifying content. In Drupal, the Taxonomy module is used to organize a website's content. It is a key piece of the site's information architecture.

Resources

325 questions
20
votes
3 answers

How can I theme the taxonomy/term/x page?

Although it was easy to find some info online about how to theme other stuff (e.g. search results), it is impossible to find a straightforward article about how to theme the output of a taxonomy/term/247 page? How can I do it?
Dan Albey
  • 559
  • 1
  • 8
  • 14
6
votes
1 answer

Drupal 7 views filter by node's taxonomy term

I have a similar question to my previous one (Drupal 7 views filter by dynamic taxonomy term), it's only the other way round. I have a "partner" content type, each with it's own taxonomy term. The other content type is a regular page with multiple…
mreq
  • 6,414
  • 4
  • 37
  • 57
6
votes
2 answers

Is there a way to prevent duplicate taxonomy terms in Drupal (7)?

I'm using a free-tagging system in Drupal and am running into a problem: if I re-use a taxonomy term, it is added (redundantly) to the taxonomy vocabulary. Is there a way to limit a vocabulary to distinct terms?
starsinmypockets
  • 2,264
  • 4
  • 34
  • 45
6
votes
1 answer

Drupal 8 entity query with multiple taxonomy terms

I have a Drupal 8 content entity with a relation to a taxonomy term which allows multiple values. I want to query the entity and get content that has only the terms I use in the query. The problem is I could not find a way to query my entity with…
6
votes
2 answers

Drupal Views Has Taxonomy Term with multiple terms

Good Morning, I am developing an website and i am in a struggle to resolve this: I have a link like this: mywebsite.com/aliments/fruit/banana. And in a View that creates the page aliments i want only to show terms with fruit and banana checked at…
5
votes
4 answers

Custom Taxonomy Term page in Drupal 7

I'm trying to make a custom Taxonomy Term page in Drupal 7. I've created a page--taxonomy.tpl.php file in my templates folder. The file only prints out a message. I now try to force the template file by adding function…
user328146
5
votes
4 answers

Drupal 7 - Insert taxonomy into node object

I have a script which successfully creates new nodes. But I'm having trouble setting the taxonomy before saving. I believe in Drupal 6 I would use this method. $cat1_tid = taxonomy_get_term_by_name($data[$i]['cat1']); $cat2_tid =…
Russell
  • 935
  • 5
  • 13
  • 27
4
votes
3 answers

Taxonomy: Top level term view?

Is it possible to create a view to only see the top level terms in a vocabulary? I can't seem to get it to stop listing all terms, using a vocabulary ID argument. I just want to see the top level parents.
Kevin
  • 13,153
  • 11
  • 60
  • 87
4
votes
4 answers

Drupal - Disable listing of nodes on taxonomy term page?

Is it possible to disable the normal taxonomy listing of nodes on taxonomy term pages? The reason I need this is I want to use a view's override of taxonomy pages BUT the default views override stops a breadcrumb module working properly. So, I want…
Evanss
  • 23,390
  • 94
  • 282
  • 505
4
votes
3 answers

Taxonomy image in Drupal 7

I've set up taxonomy in Drupal 7 called Colours. I've added some terms (red, blue etc) and added a colour image to each term. In a content type I have added a term reference field, so my client can choose colours (the colours in which that product…
4
votes
1 answer

How to enter list of tags longer than 1024 characters in Drupal 8

How can I increase maximum limit of characters for tags field? or any other "Entity reference" field The problem is, when I create content I can not enter keywords in that field once I have reached 1024 characters in total. Found this limit in file…
vasja
  • 41
  • 3
4
votes
1 answer

Drupal - How to get term Id from name with taxonomy_get_term_by_name

I have tried to use the following code to get a termId from a term: $term = taxonomy_get_term_by_name($address_string); $termId = $term[0]->tid; There is 1 result, but it is appearing as term[30] - so the above code doesn't work. I thought I…
pcrx20
  • 103
  • 1
  • 4
  • 12
4
votes
1 answer

Drupal 7 - Creating view of hierarchical content using Taxonomy or content-type

I'm trying to create a custom view in Drupal 7 that acts as a landing page for content. I've created a taxonomy group called Expertise Areas which is a hierarchical list of categories - like so: Expertise Area 1 Sub-Area 1 Sub-Area 2 Expertise…
Haymo
  • 51
  • 1
  • 4
4
votes
1 answer

Drupal Set term programmatically for a node

I want to update some nodes in my system and update a particular taxonomy attach to them. I need to do this work programmatically. I have node ids and term id and want to attach this term to this particular node. What should do the trick…
Tausif Khan
  • 2,228
  • 9
  • 40
  • 51
3
votes
1 answer

Drupal 7 views filter by dynamic taxonomy term

I have a few pages (services), each with it's own taxonomy term. I would like to add a view to the bottom. It should contain all nodes (references) with the same term as the main node (service). Could it be done by views? Read something about and…
mreq
  • 6,414
  • 4
  • 37
  • 57
1
2 3
21 22