Need help? I've been developing websites for over 20 years and specialise in ExpressionEngine development and support Get in touch

Importing comments with DataGrab

» Visit the DataGrab support page

Version 1.5 of DataGrab has some initial support for adding comment to entries when using the XML import type.

To enable comments, open the file datagrab/datatype/ajw_xml/dt.ajw_xml.php in a text editor and edit the section at (around) line 14 from:

var $datatype_info = array(
	'name'		=> 'XML',
	'version'	=> '0.1',
	'allow_comments' => FALSE
);

to:

var $datatype_info = array(
	'name'		=> 'XML',
	'version'	=> '0.1',
	'allow_comments' => TRUE
);

Then, when configuring the import you should get an additional section for adding comments:

Adding comments with DataGrab

Note: currently comments can only be added when doing an initial import - they won’t be added when updating entries.