Reputation: 38795
Suppose I have 100 nodes in content type of "product", I would like to export these nodes to a .sql or .csv file, could anyone suggest a solution?
Thanks
Upvotes: 2
Views: 3342
Reputation: 898
You can use the node_export module with Drush from the command line in the root directory of your Drupal installation to export all nodes to a CSV file with the command:
drush node-export > export.csv
Upvotes: 0
Reputation: 9809
You could use the Views module to create a view of all your products, then use the Views Bonus Pack module to export to CSV format. There are lots of other Views add-ons that could be used to export in other formats, if needed.
However, it may depend on what you ultimately want to do with the exported nodes. If you need to import them into another Drupal site, I'd recommend checking out the Node Export module, which has its own export/import format.
Upvotes: 3