drupal-taxonomy

Drupal feeds module : import excel file - every excel column as specified drupal field

吃可爱长大的小学妹 提交于 2019-12-25 08:08:08
问题 My installed modules: feeds , feeds_xls My excel file is : books.xlxs (office 2007) File sheets: my file have 15 sheets (this sheets must be as drupal taxonomy term) Every sheets involve 6 column (this column and its contents must be as drupal field content) I created a drupal content type with books name. I have attached an image to this post. you can see it. I want to import ecxel file into Drupal content.every row on this tables must import to drupal as a node) content). books Excel file

Drupal 7 views filter by dynamic taxonomy term

有些话、适合烂在心里 提交于 2019-12-21 06:22:14
问题 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 tried contextual filter with no success. Image is bellow 回答1: I think you are on the right track. Try changing your validator to "Term Id" instead of "Term Name". I created a block view with the settings you have (with "Term Id" as the validator) and

Drupal 7 - Insert taxonomy into node object

こ雲淡風輕ζ 提交于 2019-12-09 12:57:48
问题 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 = taxonomy_get_term_by_name($data[$i]['cat2']); $cat3_tid = taxonomy_get_term_by_name($data[$i]['cat3']); $node->taxonomy = array($cat1_tid, $cat2_tid, $cat3_tid); I think in Drupal 7 I would do this (my field name is Catalog) $node->taxonomy_catalog['und'][0] = array(

Drupal 7 - Insert taxonomy into node object

岁酱吖の 提交于 2019-12-03 15:24:49
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 = taxonomy_get_term_by_name($data[$i]['cat2']); $cat3_tid = taxonomy_get_term_by_name($data[$i]['cat3']); $node->taxonomy = array($cat1_tid, $cat2_tid, $cat3_tid); I think in Drupal 7 I would do this (my field name is Catalog) $node->taxonomy_catalog['und'][0] = array($term1Obj, $term2Obj); taxonomy_get_term_by_name doesn't seem to return the correct object to insert