Add support for creating nodes from pasted content

Created on 6 November 2024, 5 months ago

Problem/Motivation

I know the module is called CSV Importer, but wouldn't it be great if instead of uploading a CSV-file and doing all the configuration, you could create nodes simply by pasting a list of content into a form, and clicking "Import"?

This would allow non-technical users to create nodes very easily, simply by pasting content into a field and clicking "Import".

Steps to reproduce

Proposed resolution

Add support for importing a list of content, simply by pasting content into a form, and clicking "Import":

title;field_address
Tailor shop;Tailor street 142
Baker shop;Baker Street 24
The Farm;Farmer Street 1

All variables should be set in advance by the Drupal administrator, in a separate form-import configuration page:

  • Entity type
  • Entity bundle
  • Unique field
  • Delimiter

These pre-defined variables will be shown on the form-import page, below the form. Something like this:

  • You can create Articles, using this format:
    title;field_address
    Actual title 1; Actual address 1
    Actual title 2; Actual address 2
    
  • Unique field is title
  • Delimiter is ;

Paths

  • The configuration form could be under /admin/config/development/csv-importer/form-import-config
  • The import form could be under /admin/config/development/csv-importer/form-import

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024