开发者

how to insert a node in drupal using database query?

开发者 https://www.devze.com 2023-03-24 00:22 出处:网络
i want to insert the node manually to drupal database using mysql query. i am using CCK module with path redirect,pathauto & view.

i want to insert the node manually to drupal database using mysql query. i am using CCK module with path redirect,pathauto & view.

Whic开发者_运维知识库h tables & which field i will have to feed data so that it will work like a node.


Best thing I can think of is to insert a node through the Drupal system and see which tables get updated and what with.


It's best to follow the Drupal API way of doing this.

You can take a look at this page http://www.unleashed-technologies.com/blog/2010/07/16/drupal-6-inserting-updating-nodes-programmatically which will help you insert a node with PHP.

0

精彩评论

暂无评论...
验证码 换一张
取 消