Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryan-l-robinson/drupal-paragraph-split
Drupal module to split a pair of repeating text fields into paragraphs instead
https://github.com/ryan-l-robinson/drupal-paragraph-split
drupal drupal-9-module
Last synced: 3 days ago
JSON representation
Drupal module to split a pair of repeating text fields into paragraphs instead
- Host: GitHub
- URL: https://github.com/ryan-l-robinson/drupal-paragraph-split
- Owner: ryan-l-robinson
- Created: 2023-01-03T19:37:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T20:13:01.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T05:13:08.665Z (about 2 months ago)
- Topics: drupal, drupal-9-module
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.