Import from text file. Are there any ready-made solutions or need custom module?

Created on 10 November 2024, 11 days ago

I have a text file with the following content:

BEGIN:ITEMS
    BEGIN:ITEM
        UID:1001
        TITLE:Article 1
        DESCRIPTION:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fringilla mattis turpis, non pellentesque libero lobortis eu. Maecenas dapibus sed elit sed bibendum. Duis ut arcu a massa auctor auctor.
    END:ITEM
    BEGIN:ITEM
        UID:1002
        TITLE:Article 2
        DESCRIPTION:Nullam interdum nisl accumsan nulla vulputate finibus. Morbi dignissim turpis a lectus commodo maximus.
    END:ITEM
END:ITEMS

Is it possible to import from this file? Are there any ready-made solutions before I start custom module?

πŸ“Œ Task
Status

Active

Component

Documentation

Created by

πŸ‡ΊπŸ‡¦Ukraine vasyok

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

Comments & Activities

  • Issue created by @vasyok
  • πŸ‡³πŸ‡±Netherlands megachriz

    What kind of syntax is this? Anyway, I don't know if there already is a module that can parse this format.

    Since the format looks similar to XML, if you want to write a parser yourself, I recommend to create a FeedsParser plugin with a class that extends \Drupal\feeds_ex\Feeds\Parser\ParserBase. That class is part of Feeds Extensible Parsers β†’ , so that one would be your module's dependency.

    Marking this as "Fixed" because I gave an answer. Feel free to reopen if you need more information or help.

  • πŸ‡ΊπŸ‡¦Ukraine vasyok

    Thanx megachriz. Right now a i found XML source so i don need custom module.

Production build 0.71.5 2024