README.txt in Node Convert 6
Welcome to Node Convert.
This module allows to convert one or many nodes between different node types.
It can transfer most cck fields, and node-specific options for book and forum types.
Support of more basic types will be in future releases.
Also the module provides an API for converting nodes and cck fields, hooks for processing
additional options of custom node types, integrates with hook_node_operations and Drupal's
Action API.
I. Single node conversion:
1) Set 'administer conversion' and 'convert to x', 'convert from y' permissions.
2) Go to /node/x/convert and follow the provided steps to convert the node.
II. Multiple node conversion (using hook_node_operations)
1) Set appropriate permissions.
2) Go to admin/build/node_convert_templates
3) Create a new template following the the provided steps.
4) Go to admin/content/node
5) Select the correct nodes.
6) Choose "Convert template: x" (based on the template name created above) from the update options.
7) Click Update.
III. Multiple node conversion (using Actions API + Views Bulk Operations)
Note: This requires the contributed modules Views and Views Bulk Operations
1) Set appropriate permissions.
2) Go to admin/build/node_convert_templates
3) Create a new template following the the provided steps (also check Create Action).
3) Create a new view with the options you require.
4) Select Views Bulk Operations as the style.
5) Configure all options as necessary
6) Select as an operation one of the convert templates.
Note: Most probably there will be duplicates of the same template, this is because
VBO uses both Actions API and hook_node_operations to show possible operations
7) Save the view. View it.
8) Select the necessary nodes and click the Convert x button.
Useful API calls:
node_convert_node_convert($nid, $dest_node_type, $source_fields, $dest_fields, $no_fields_flag, $hook_options = NULL);
node_convert_field_convert($nid, $source_field, $dest_field);
hook_node_convert_change($data, $op);
File
README.txt
View source
- Welcome to Node Convert.
-
- This module allows to convert one or many nodes between different node types.
- It can transfer most cck fields, and node-specific options for book and forum types.
- Support of more basic types will be in future releases.
-
- Also the module provides an API for converting nodes and cck fields, hooks for processing
- additional options of custom node types, integrates with hook_node_operations and Drupal's
- Action API.
-
- I. Single node conversion:
- 1) Set 'administer conversion' and 'convert to x', 'convert from y' permissions.
- 2) Go to /node/x/convert and follow the provided steps to convert the node.
-
- II. Multiple node conversion (using hook_node_operations)
- 1) Set appropriate permissions.
- 2) Go to admin/build/node_convert_templates
- 3) Create a new template following the the provided steps.
- 4) Go to admin/content/node
- 5) Select the correct nodes.
- 6) Choose "Convert template: x" (based on the template name created above) from the update options.
- 7) Click Update.
-
- III. Multiple node conversion (using Actions API + Views Bulk Operations)
- Note: This requires the contributed modules Views and Views Bulk Operations
-
- 1) Set appropriate permissions.
- 2) Go to admin/build/node_convert_templates
- 3) Create a new template following the the provided steps (also check Create Action).
- 3) Create a new view with the options you require.
- 4) Select Views Bulk Operations as the style.
- 5) Configure all options as necessary
- 6) Select as an operation one of the convert templates.
- Note: Most probably there will be duplicates of the same template, this is because
- VBO uses both Actions API and hook_node_operations to show possible operations
- 7) Save the view. View it.
- 8) Select the necessary nodes and click the Convert x button.
-
- Useful API calls:
- node_convert_node_convert($nid, $dest_node_type, $source_fields, $dest_fields, $no_fields_flag, $hook_options = NULL);
- node_convert_field_convert($nid, $source_field, $dest_field);
- hook_node_convert_change($data, $op);