Community Documentation

Setting terms for inserted nodes

Last updated February 19, 2008. Created by ax on January 14, 2004.
Log in to edit this page.

you probably want to assign terms to the inserted nodes. You can do this by hand in mysql. The following attaches the term with term id 1 to all the nodes (whose node ids I determined by some characteristic of the nodes themselves, using a select statement).

%mysql -ppassword drupal
mysql> insert into term_node select nid, 1 from node where nid >= 6 and nid <= 83;

Installation guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.