Creating Drupal CCK content programmatically/ via API

后端 未结 4 1456
旧巷少年郎
旧巷少年郎 2021-01-03 04:30

I am working with a Drupal 6.x system to create exercise / personal training programmes, and am using the CCK with content types of Exercise and Programme, where Programme c

4条回答
  •  半阙折子戏
    2021-01-03 05:18

    Drupal doesn't provide any "cascading" save mechanism to save a hierarchy of nodes in one swoop. You'll need to build each node in code and call node_save() on it explicitly as described by Phil Carter.

    The Node Export module can generate sample code for creating a node (complete with CCK fields) programatically.

提交回复
热议问题