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
0
votes
2 answers

Add taxonomy terms directly to node through SQL (term_node)

How can I add taxonomy terms directly to a node through SQL? I used: db_query("INSERT INTO {term_node} (nid, vid, tid) VALUES ( " . $row['nid'] . "," . $the_term->vid . "," . $row['next_tid'] . ")" ); The values $row['nid'], $the_term->vid and…
marinex
  • 5
  • 1
  • 7
0
votes
1 answer

How to print taxonomy terms in Drupal?

I am trying to print taxonomy terms using this code: tid; ?> "class='tags'>name ?>, It works fine in…
Vonder
  • 4,033
  • 15
  • 44
  • 61
0
votes
1 answer

Allow user to dynamically add fields and values to a node in Drupal

I'm trying to come up with a way for a user to populate a form with only the fields needed for a given piece of content. So for example I have a content type called "Research Project" and I want to add a series of measurements to each one. eg. Proj…
Pooch
  • 571
  • 5
  • 5
0
votes
0 answers

Drupal Taxonomy Architecture Design for World Geography

I am building a Drupal 7 site to use the Google Maps API coupled with the GeoField module. I need to architect the site so that a node (perhaps a custom content type with the geofield used) represents a location on the map. Would a geo field in the…
Adam
  • 4,590
  • 10
  • 51
  • 84
-1
votes
1 answer

import taxonomy term based on url alias from csv(around 6000 records)

$alias = \Drupal::service('path.alias_manager')->getPathByAlias($url); $params = Url::fromUri("internal:" . $alias)->getRouteParameters(); I get the node id from the above code. \Drupal::entityTypeManager() …
Abel
  • 2,371
  • 3
  • 15
  • 29
-1
votes
2 answers

node_save() failing when creating node programatically

I am trying to create a node programatically like so, $newNode = (object) NULL; $newNode->type = 'job'; $newNode->title = $data['JobTitle']; $newNode->uid = $user->uid; $newNode->created = strtotime("now"); $newNode->changed =…
Udders
  • 6,914
  • 24
  • 102
  • 194
-1
votes
1 answer

Taxonomy list custom, unique link with a field

I've created a list of events with a taxonomy/vocabulary, where the 2 most recent will display on the home page and an events page lists all the events. This works great. However, I would like to create a link to an external site where a user can…
-1
votes
1 answer

Drupal taxonomy terms with views

I need to achieve some basic tasks by using taxonomy terms. I hope Drupal lovers can help me. I have food categories and food products under these categories. I need to show on a page food categories and clicking these categories needs to redirect…
Ayberk
  • 50
  • 11
-1
votes
1 answer

how to change the default label field name in taxonomy, drupal 7?

I want to change the default label name. Any idea? Suppose in taxonomy .../admin/structure/taxonomy/add, we can add vocabulary right.. In that first text box having the label name as name. I want to change this ? Please give your idea.
Karthik
  • 3,221
  • 5
  • 28
  • 38
-1
votes
1 answer

Drupal Taxonomy Google maps

I am trying to make a list of places with taxonomy terms. Right now a I have a view that displays all of my terms but i want to add a "See on map" link for each terms that opens up google maps with the location of the selected place. Can anyone…
user1634451
  • 5,133
  • 6
  • 30
  • 43
1 2 3
21
22