Is defaultcontent supposed to support Title module? I'm trying to export nodes that have title_field from the Title module but in the exported code there's no title_field.

Comments

floretan’s picture

Status: Active » Needs work

This currently doesn't work, because only fields that start with "field_" are exported. The code that does that is in node.inc:

  //grab all fields that are not empty
  foreach (get_object_vars($node) as $key => $value) {
    if (preg_match("/^field_/", $key) && !empty($value)) {
      $export->{$key} = $node->{$key};
    }
  }

This should be replaced with a field API call to load all fields for the current content type. This should make defaultcontent work with the Title module and other modules that define fields programmatically that don't start with "field_".

Jeffrey C.’s picture

Version: 7.x-1.0-alpha5 » 7.x-1.x-dev

Can anyone provide a patch for that?