Drupal

relating to Drupal CMS systems

Converting nodes en mass

On this website I had nodes that were "story" node types and "blog" node types. It was getting confusing. So I moved all "blog" nodes to "story" nodes by creating a page and running the following PHP code from a Drupal node:

<?php
node_type_update_nodes('blog', 'story');
?>

Steps:

1. Create a new page: node/add/page.
2. Insert code above. "blog" nodes will be changed to "story" nodes.
3. Set "PHP code" as the "Input format".
4. Preview the page.
5. All blog posts should now be converted to story posts.

Quick and easy.

Webcron

The News aggregator only updates if cron jobs are being run.
There doesn't seem to be a way of doing this via the Control Panel for this site so I have set up an account on http://www.webcron.org/index.php
This will visit cron.php every hour.
Voila - news gets updated!

MyMusic