Raw Mapping

Categories

Component ID

1721336

Component name

Raw Mapping

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Convert data loaded into a node by simple paste (or Feeds or data import) into better structured data.

A simple text field may be provided for a list of items to be dropped into
and this tool would be able to convert that list into individual fields
on the same entity.
The original data can optionally be discarded onve converted.

The UI will be for a simple textarea field (eg named people_raw)
to have an additional setting on the field settings page that refers
to the structured data field (eg a multiple textfield 'people')

A separator (eg newline or comma) is defined there.

Running the process (through VBO or similar) would shift the data between those fields.

Failed to find even a utility for copying data from one field to another on d.o.
May be possible with rules but that's heavy for this.

Usage

A textarea field on a content type will have extra options shown on the field configuration settings.
Which target field to transfer data into, and what separater to use to do it.

The target field should be something like a textfield with multiple values enabled.

Now you can paste a newline-separated list into a text field, then press the "raw mapping" button, and that raw data in the textarea will be placed into many reows in individual text fields.
This can also go into multi-valued fields, such as links (URL, title pairs) or field collections - which is what it was made for.

Right now there *is* no 'do it' button, instead this process is exposed as node actions that can be triggered through content management, VBO, or rules.