Getting started with Paragraphs bundles import

Created on 27 July 2024, 4 months ago
Updated 4 September 2024, 2 months ago

Problem/Motivation

Trying to figure out how to use this ... without jumping the gun too much. i have installed the releases but realize they are in dev. state. I will be happy to help with testing, once I figure out a few things.

The documentation states:

What Does "Register Files" Mean?
Drupal stores files in the sites/[site-name]/files/... directory. If you upload files using a module like IMCE, Drupal automatically recognizes them. However, if you upload files directly via SFTP to sites/[site-name]/files/..., you need to register these files with Drupal. The "Register Files" button helps you achieve this.

This is exactly the situation with the Juicebox Gallery contrib module where I have 100 + galleries and thousands of files. Going back to 2016 or so, there was no core media module and we happily used FTP to upload both Gallery XML files and the image files associated with the XML. A separate Javascript program processed these and constructed galleries. These clearly would not be "registered" with Drupal but that didn't matter to the Javascript. With the paragraphs slideshow, while I can construct a working slideshow, it basically duplicates each jpg file either as a media file or with a later approach as a simple image jpg file.

I'm hoping that the paragraphs bundles import will let me register all these jpgs so that they don't need to be duplicated. And facilitate the creation of galleries.

So, for example, in my sites/default/files directory I have a jboxgalleries directory. Under that I have a subdirectory for each gallery (a.k.a. slideshow). The xml file looks something like this:

<?xml version="1.0" encoding="UTF-8"?>

<juiceboxgallery 

	enableAutoPlay="true"
	autoPlayOnLoad="true"

>
  <image imageURL="images/IMG_0450.jpg"
	thumbURL="thumbs/IMG_0450.jpg"
	linkURL="images/IMG_0450.jpg"
	linkTarget="_blank"
	sourcePath="D:\Pictures\2010_more Some home some reunion\IMG_0450.JPG">
    <title><![CDATA[IMG_0450]]></title>
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/IMG_0451.jpg"

and goes on to list one jpg (and associated thumbnail jpg) for each slideshow item.

Not all my images have titles or captions. I guess I would just leave these out of any csv file I construct. Likewise fields like sourcePath would have no meaning to the csv processor and should be left out.

What's not clear to me is whether I should be trying to create a node or not. Would each slideshow be a node? Or should I be trying to create a paragraph bundle and using the csv importer inside the paragraph import module? Will my slideshows now be paragraph bundles within the paragraphs nomenclature?

Anyway thanks for undertaking this project.

šŸ’¬ Support request
Status

Active

Version

1.0

Component

Documentation

Created by

šŸ‡ŗšŸ‡øUnited States fkelly

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

Comments & Activities

  • Issue created by @fkelly
  • šŸ‡ŗšŸ‡øUnited States flashwebcenter Austin TX

    Hello,

    The module has been released, and all the videos have been created and published

    Best wishes,
    Alaa

  • šŸ‡«šŸ‡®Finland anaconda777

    Hi,

    This is absolutely amazing module. I hope this could solve the "problem" with the D10 Quiz module, and the import of multiple-choice questions.
    I think the Quiz module multiple choice questions are paragraphs and the answer options in each question are like inner paragraphs or "sections" as called in the videos. Now it is impossiple for me to import those answer options inside a single multiple choise question, but this module looks promising.

  • šŸ‡ŗšŸ‡øUnited States flashwebcenter Austin TX

    Hello,

    Thank you! I'm glad you find the module promising. Iā€™m not familiar with the specific issue with the Quiz module, but currently, you can import content to create three different types of paragraph bundles (Accordion, Tabs, and Slideshow). Hopefully, this helps with your needs!

    Best wishes,
    Alaa

  • šŸ‡«šŸ‡®Finland anaconda777

    So I guess it would mean that a Paragraph Bundle should be created for the quiz module to be able to import quiz module related paragraphs.

  • šŸ‡ŗšŸ‡øUnited States flashwebcenter Austin TX

    Hello,
    The Paragraphs Bundles module includes several custom pre-configured bundles, such as Accordion and Slideshow. The Paragraphs Bundles Import module allows you to import content into these pre-configured bundles. It has no connection with the Quiz module.

    Best wishes,
    Alaa

  • šŸ‡ŗšŸ‡øUnited States flashwebcenter Austin TX
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024