User login
Navigation
Recent blog posts
- Ubuntu mirrors up and improved!
- Google-jstemplate: Iterate object with unknown properties
- nginx https proxypass for php apps
- sugarcrm & memcache: Doing it Wrong
- subversion and https in Ubuntu Karmic
- Drupal: Views block delta converted to md5 hash
- Ubuntu Server install requires PAE
- Installing Drupal from command line
- Drupal: Handling form field weight through CCK
- minify javascript using Google Closure Compiler
angch's location
angch twitter
drupal programmatic

Drupal: Programmaticaly creating nodes
kamal — Mon, 13/04/2009 - 10:49
Note: Work in progress, need to jot down for future reference.
When migrating content from the old system to Drupal, we need some programmatic way of doing that. If we did some Google search with keyword such as "programmatic Drupal", two methods become obvious - node_save() and drupal_execute(). Before we go further, better to clarify that both methods are not exactly some kind of Data API that Drupal provide to programmaticaly import external data. It far from that. It just happened that we can leverage both functions to help us put external data in place within Drupal structure.
