You are here

README.txt in Content Import 8.9

Same filename and directory in other branches
  1. 8 README.txt
  2. 8.3 README.txt
  3. 8.4 README.txt
SUMMARY - Content Import
========================
To import content for content type from CSV file

REQUIREMENTS
------------

This module requires the following:
A CSV file for content type to import.
The .csv file can have two or more columns,
eg:- title, machine_name1, machine_name2,machine_name3...
The first row should be machine name for the content type
and the following rows will be taken as data.
Refer the example given in the module folder CSV_article.csv file

INSTALLATION
-------------
Install this module as usual. Please see
http://drupal.org/documentation/install/modules-themes/modules-8

CONFIGURATION
-------------

After successfully installing the module contentimport, 
you can import data for the selected content type via 
file import.

Install the module contentimport.

Go to Configuration and select Content Import from 
Content Authoring.
 
It will redirect you to Content Import Form, with two 
fields: Content Type and Import file.

Select the Content Type, this will have all the content types
available in the application

Before choosing csv file, check weather the first row contains 
all the machine names from the content type

The file should be CSV file.

Please give write permission for your sites/default/files/ folder 
to write the log file.

If the content type having image fields, upload all the images 
in public://<content_type>/images/ folder before importing 
the CSV file(IMCE module will be helpful for this)

Put the image name in the respective image column.

Mandatory Columns is CSV:
=========================

title - Title of the node
langcode - By default it should be 'en' for english and 
		you can define the langcode created by you.

Field Mapping:
=============

For Image field - upload all the images
	in public://<content_type>/images/ folder before importing
	the CSV file(IMCE module will be helpful for this).

For Entity Reference field(Taxonomy) - put the data as Vocabulary: term1, term2
	If the Vocabulary or Term is not exists it will create automatically.
	If a field has multiple vocabularies as a target in field settings, you must
	do this:
	Eg: fruits:apple,orange
	Otherwise, if there is a single target, you must omit the vocabulary name:
	Eg: apple,orange,pear,banana

For Entity Reference field(Users) - put the user's email address 
	comma separated 
	If the User is not exists it will create automatically.
	Eg: user1@d8.com,user2@d8.com

For Entity Reference field(Content) - put the title of the node 
	colon separated 
	Eg: title1:title2:title3	

For Boolean field - Put On/on/Yes/yes to check the field and Off/No to uncheck 
	the	field.

For Date field - Put the data in m/d/Y h:m:i format or if you want the date only
	please put the data in m/d/y format.

For Timestamp field - Put the timestamp, the system will convert and store 
	the date.

For Geolocation field - Put the latitude and longitude values with , separated
	If the field having mulitple values, put the data with ; as delimiter
	Eg: lat1,long1
		lat2,long2;lat3,long3
		lat4,long4;lat5,long5;lat6,long6
		lat7,long7

For Geo field - Put the latitude and longitude values with , separated
	If the field having mulitple values, put the data with ; as delimiter
	Eg: lat1,long1
		lat2,long2;lat3,long3
		lat4,long4;lat5,long5;lat6,long6
		lat7,long7

For List (String) - Put the latitude and longitude values with , separated
	If the field having mulitple values, put the data with , as delimiter
	Eg: mango,banana

For Author - add column with key "author" in CSV and put the user names under 
  this column, system will be adding the author information when the import
  happens.

Check the attached CSV file for Sample.

Click on Import which redirects you to admin/content

File

README.txt
View source
  1. SUMMARY - Content Import
  2. ========================
  3. To import content for content type from CSV file
  4. REQUIREMENTS
  5. ------------
  6. This module requires the following:
  7. A CSV file for content type to import.
  8. The .csv file can have two or more columns,
  9. eg:- title, machine_name1, machine_name2,machine_name3...
  10. The first row should be machine name for the content type
  11. and the following rows will be taken as data.
  12. Refer the example given in the module folder CSV_article.csv file
  13. INSTALLATION
  14. -------------
  15. Install this module as usual. Please see
  16. http://drupal.org/documentation/install/modules-themes/modules-8
  17. CONFIGURATION
  18. -------------
  19. After successfully installing the module contentimport,
  20. you can import data for the selected content type via
  21. file import.
  22. Install the module contentimport.
  23. Go to Configuration and select Content Import from
  24. Content Authoring.
  25. It will redirect you to Content Import Form, with two
  26. fields: Content Type and Import file.
  27. Select the Content Type, this will have all the content types
  28. available in the application
  29. Before choosing csv file, check weather the first row contains
  30. all the machine names from the content type
  31. The file should be CSV file.
  32. Please give write permission for your sites/default/files/ folder
  33. to write the log file.
  34. If the content type having image fields, upload all the images
  35. in public:///images/ folder before importing
  36. the CSV file(IMCE module will be helpful for this)
  37. Put the image name in the respective image column.
  38. Mandatory Columns is CSV:
  39. =========================
  40. title - Title of the node
  41. langcode - By default it should be 'en' for english and
  42. you can define the langcode created by you.
  43. Field Mapping:
  44. =============
  45. For Image field - upload all the images
  46. in public:///images/ folder before importing
  47. the CSV file(IMCE module will be helpful for this).
  48. For Entity Reference field(Taxonomy) - put the data as Vocabulary: term1, term2
  49. If the Vocabulary or Term is not exists it will create automatically.
  50. If a field has multiple vocabularies as a target in field settings, you must
  51. do this:
  52. Eg: fruits:apple,orange
  53. Otherwise, if there is a single target, you must omit the vocabulary name:
  54. Eg: apple,orange,pear,banana
  55. For Entity Reference field(Users) - put the user's email address
  56. comma separated
  57. If the User is not exists it will create automatically.
  58. Eg: user1@d8.com,user2@d8.com
  59. For Entity Reference field(Content) - put the title of the node
  60. colon separated
  61. Eg: title1:title2:title3
  62. For Boolean field - Put On/on/Yes/yes to check the field and Off/No to uncheck
  63. the field.
  64. For Date field - Put the data in m/d/Y h:m:i format or if you want the date only
  65. please put the data in m/d/y format.
  66. For Timestamp field - Put the timestamp, the system will convert and store
  67. the date.
  68. For Geolocation field - Put the latitude and longitude values with , separated
  69. If the field having mulitple values, put the data with ; as delimiter
  70. Eg: lat1,long1
  71. lat2,long2;lat3,long3
  72. lat4,long4;lat5,long5;lat6,long6
  73. lat7,long7
  74. For Geo field - Put the latitude and longitude values with , separated
  75. If the field having mulitple values, put the data with ; as delimiter
  76. Eg: lat1,long1
  77. lat2,long2;lat3,long3
  78. lat4,long4;lat5,long5;lat6,long6
  79. lat7,long7
  80. For List (String) - Put the latitude and longitude values with , separated
  81. If the field having mulitple values, put the data with , as delimiter
  82. Eg: mango,banana
  83. For Author - add column with key "author" in CSV and put the user names under
  84. this column, system will be adding the author information when the import
  85. happens.
  86. Check the attached CSV file for Sample.
  87. Click on Import which redirects you to admin/content