Adding functionality

Created on 12 February 2018, almost 7 years ago
Updated 9 August 2023, over 1 year ago

Patch that provides new functionality.

Importing an image to article:field_image

Add an image field (field_image) to the article.
Upload your source images to public://$contentType'/images/' folder (sites/default/files/article/images).
Add the image field name in the respective csv column (field_image).
Import the csv.
Example csv:

title,field_seo_title,field_image,field_channel
Node Title,Node field_seo_title text,test.jpg,tags:News

Importing an image to article:field_teaser_media

Upload your source images to public://$contentType'/images/' folder (sites/default/files/article/images).
Add the image field name in the respective csv column (field_teaser_media). Add the data with this structure: media:test.jpg
Import the csv.
Example csv:

title,field_seo_title,field_channel,field_teaser_media
Node Title,Node field_seo_title text,tags:News,media:test.jpg

Importing an image to article:paragraph_field_image

Upload your source images to public://$contentType'/images/' folder (sites/default/files/article/images).
Add the image field name in the respective csv column (field_paragraphs). Add the data with this structure: image:test.jpg
Import the csv.
Example csv:

title,field_seo_title,field_channel,field_teaser_text,field_paragraphs
Node Title,Node field_seo_title text,tags:News,the teaser text,image:test.jpg

Importing data to multiple article:paragraph fields

Upload your source images to public://$contentType'/images/' folder (sites/default/files/article/images).
Add the image field name in the respective csv column (field_paragraphs). Add the data with this structure: image:test.jpg
Add the text field name in the respective csv column (field_paragraphs). Add the data with this structure: text:The text
Import the csv.
Example csv:

title,field_seo_title,field_channel,field_teaser_text,field_paragraphs,field_paragraphs
Node Title,Node field_seo_title text,tags:News,the teaser text,image:test.jpg,text:The text for the paragraph field
Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇬🇷Greece vagelis-prokopiou

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India saurabh-2k17

    I am trying to make the above patch compatible with the latest version, but it is breaking at multiple steps. Anyone tried the above patch on recent versions?

Production build 0.71.5 2024