Hello, I'm new to your module. I read all the documentation and went for my first node import. I did it in excel, loaded into notepad and saved as UTF-8 CSV It fails at step 7 of 8 stating that "Description field is required." I dont see any Description field in the node table, so I have no idea where I have gone wrong. Any ideas?

Comments

ludo1960’s picture

StatusFileSize
new19.89 KB

OOPS,

Robrecht Jacques’s picture

Title: Description field is required. ?? » Support Organic Groups
Category: support » feature

If you go to the edit page of a groupnode (node/add/groupnode) you should see a "Description" field that is required. In this case it is the "og_description" field of the Organic Groups module.

Currently this module is not supported. Changing the title to set it as a feature request.

ludo1960’s picture

Many thanks for your reply, great work on the module. I see others have requested support for OGs, any plans for this?
Can I help support in any way?

Cheers.

ludo1960’s picture

Bump,

Is OG on your list of modules to add? If not any advice on creating module specific inc files?

Robrecht Jacques’s picture

Yes, it is on my list. But I don't have time this week to implement it.

You could look at the other .inc files in the supported directory. The basic hook to implement is hook_node_import_fields(). For the "Description" you probably will not have to implement anything else.

function og_node_import_fields($type) {
  $fields = array();
  if (($node_type = node_import_type_is_node($type)) != FALSE && the_type_is_a_og_type($type)) {
    $fields['og_description'] = array(
      'title' => t('Description'),
      'group' => t('Organic group'),
      'is_required' => TRUE,
      'is_mappable' => the_user_can_set_the_og_description($user),
    );
  }
  return $fields;
}

could get you started (untested).

Robrecht Jacques’s picture

Status: Active » Fixed

Organic Groups support has been added to CVS. Please test og.inc. Copy it to sites/all/modules/node_import/supported/og/og.inc creating a new directory.

Report back any errors.

ludo1960’s picture

StatusFileSize
new1.62 KB

Hello Robrecht,

OK installed as instructed, I get to step 6 of 8 and entered for the book entry.
This causes the import to fail (no errors about OG_description though!)
Please find attached the error report:

Cheers...

ludo1960’s picture

Just to confirm, the OG import is working and respects Pathauto settings, it only fails when you try to add Books for each OG at the same time.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.