• Development

    Importing Paragraph Content with Feeds in Drupal 7

    As I write this, there isn’t an established way to import data into Paragraphs using Feeds.

    This solution only caters to my particular fields, but it should serve as an example of one way to import HTML content into a basic “textarea” paragraph.

    Goal

    My goal was to import HTML content into a Basic page content type as a basic textarea paragraph item. The original data is from a Drupal 7 typical “body” field, and I want to import the data into a paragraphs-based body field.

  • Development

    Auto-create URL Redirects in Feeds

    I’m working on a website redesign. The original site used awful URL aliases where nearly everything got a URL like /content/title-of-page-would-end-up-looking-like-this. There are no “sections” to speak of in the URL structure, and there are several thousand nodes! I’m migrating most of the content from the “old” site to the new one using Feeds. Rather than manually mess with rewrite rules, I figured I should just create a redirect at the time of migration. We typically handle redirects/rewrites using the redirect module. So, how do you do this?