Skip to content

Drupal module to split a pair of repeating text fields into paragraphs instead

Notifications You must be signed in to change notification settings

ryan-l-robinson/Drupal-paragraph-split

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Drupal module: paragraphs split

When multiples of an item is adding to temporary fields and separated with ::, one paragraph for each is created instead.

Scenario

This was initially developed to assist with importing data from an old Drupal 7 site into a new Drupal 9 site. One of the fields was a field collection reference on Drupal 7, allowing multiple collections associated with each node, where each collection has two fields. This could not be directly imported with feeds, so the solution included:

  1. Exporting the data from the old site, where the multiples of each value is separated by ::
  2. Importing with feeds, with feeds tamper splitting each into multiples of the temporary text fields.
  3. This module then begins when the node is created, and translates the text fields into the paragraph, including associating those paragraphs with the node.

More on the context and how it was solved will be available soon at https://ryanrobinson.technology.

About

Drupal module to split a pair of repeating text fields into paragraphs instead

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published