How to change node types in Drupal

Admin's picture
Share this

How to change content type of a Drupal node ? It's simple and takes not more than a dozen of clicks!

Yes, with the Drupal node convert module, you can easily change the type of the nodes. No problem if the node type has CCK fIelds, Node Convert will play with CCK for you. You can change nodes individually or in bulk mode. Also, book structures will remain properly working. You can even use this module to convert to/from forum topics utilized by drupal forum module in core(works well with Advanced Forum module too!)
We recommend you to read the documentation at drupal.org too.

  • Converting an individual node

  • Converting a single node is extremely easy. Node Convert module adds a new tab to each node, which can be accessible from /node/%n/convert ; replace node/%n with the drupal path to the node. If this is bothering you, simply open the node in your browser (you must install the module and get permissions before this). You'll see a tab - "convert". It's the place where you can kick the node.

    In the convert page, you can choose list box to choose the target node-type. Choose the node type and hit Next. Node Convert will then check source and destination types for CCK fields. If you have no custom fields added, you've nothing to do. Else, you can map CCK fields manually. Simply continue, you can see that your node has changed!

  • Bulk Convert

  • Posted content in a useless content type, or broken content type for years ? No problem! You can convert nodes in bulk mode too!
    You must create a template before 'going bulk'. Go to /admin/build/node_convert_templates and click on Add button.
    You can choose source and destination node-types in the 'Add' page. Save it. We are going to convert nodes in bulk.

    You can choose the nodes which you need to convert to, in /admin/content/node . After choosing source nodes, select the name that you gave to the node convert template. Hit Update!
    When the next page loads, all chosen nodes will be converted!







Things to remember

  • You must install CCK module in order to install Node Convert(even when your site doesn't have CCK fields)
  • You must configure the destination node-type settings before converting, to avoid happening unplanned things
  • You can use the module once to convert the nodes and uninstall it.
  • If you checked "create an action" when you create a node-convert-template, there will be an action available in Actions module to use with triggers
  • If you have Views Bulk Operations module installed, you can use Node Convert module in Views
  • Your custom menus which contain links to the nodes affected, they will remain working.
  • You may need to modify custom Views manually
  • Node IDs will remain untouched

Remember that this module only convert the title/body fields, CCK and node id and its URL alias. Node-type specific settings such as comment box fields, rating widgets, default input formats, etc will get the defaults of destination node-type.

Happy Converting!

No votes yet