Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3785002
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:27:44+00:00 2026-05-19T11:27:44+00:00

I’m working on a Drupal project where I have two types of nodes built

  • 0

I’m working on a Drupal project where I have two types of nodes built with CCK content types — “venues” (parent nodes) and “concerts” (child nodes).

I’ve imported a bunch of well-known venues from CSV via node_import module, and now need to import another CSV filled with shows.

How do I:

a. Reference the venues from the concerts CSV — what I essentially need to do is create a nodereference based on a location.module address (But not the CCK type because of how I imported the venues), but I don’t know how to import like this, especially when the same address may vary somewhat between the two sheets (in terms of punctuation, etc.).

b. For some concert listings, it’s likely my venue datasheet will be incomplete. When importing, how do I create parent nodes when the importer can’t find the address referenced by the child node? Note that the concerts CSV has most of the information from the venues CSV in each row.

I mention I’m using node_import but am thinking I may need to use the Data API for this. I have no experience with the latter (Or preference for a particular importing method, really) and would be grateful for any help whatsoever you can give me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:27:44+00:00Added an answer on May 19, 2026 at 11:27 am

    feeds will be a good solution for you, I think. You’ll need to set it up with importers for the 2 different content types, and depending on how your files are structured you may need to run the same file though both importers.

    For the node reference you’ll either need to use the node_reference mapper that may only exist as a patch at this time, or write your own (which we ended up doing in an afternoon).

    We are currently doing something simular importing 60k auction listings and spread across 30-40 Events. Works like a charm.

    node reference mapper:
    http://drupal.org/node/724536

    feeds:
    http://drupal.org/project/feeds

    Regarding why you may need to import the same file more than once, here is a simplified example of how we import a csv file that has info about items and events in the same file.
    if you have a file that has the following structure:

    |item_id|event_id|item_body  |event_body  |
    
    |12231  | 123    | 'price $1'| 'on friday'|
    
    |12232  | 123    | 'price $5'| 'on friday'|
    

    we run this for both an event content type importer, for both the *_id column is the GUID, and the body is imported as the body. The event importer runs first. For the item the event_id is used to find the node that was created for the event, and a node reference is created. The info for the content type that is not being imported gets ignored.

    Only the first instance of the event_id needs the body or other fields, but some of our providers duplicate the data which doesn’t actually slow things down, from what i remember. We also have providers that send 2 seperate files 1 for events and one for items, with the items containing a column for event id.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.