Hello,

I'm trying to export the node references, but when I check the option 'Automatically include referenced nodes in exports ' in the Node Export settings page and save the config, it gets unchecked and when I try to export the reference this is not done. Is this a known problem or still in development?

Thanks in advance

CommentFileSizeAuthor
node_references.jpg19.32 KBsjansen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danielb’s picture

Status: Active » Closed (won't fix)

You have offered no evidence that node references are not included in the export code.
Also, asking questions while reporting a bug casts a lot of doubt over your claims.

sjansen’s picture

Hello,

Maybe I posted it in the wrong category with not enough information, but this is what I'm doing. Added field_reference (as reference node) to the article content type. Then I created a basic page called Reference node, after that I created an article named This is a test node with a reference to the basic page reference node. Then I export both nodes and I get the following node export code

array(
  array(
    'vid' => '15',
    'uid' => '1',
    'title' => 'This is a test node',
    'log' => '',
    'status' => '1',
    'comment' => '2',
    'promote' => '1',
    'sticky' => '0',
    'vuuid' => 'b9901589-0c0c-93a4-d1f7-b5659a3d87ca',
    'nid' => '15',
    'type' => 'article',
    'language' => 'nl',
    'created' => '1330587090',
    'changed' => '1330587487',
    'tnid' => '0',
    'translate' => '0',
    'uuid' => 'fac4a92e-53cb-0374-595f-39cc7337869f',
    'revision_timestamp' => '1330587487',
    'revision_uid' => '1',
    'body' => array(),
    'field_tags' => array(),
    'field_image' => array(),
    'field_reference' => array(
      'und' => array(
        '0' => array(
          'nid' => '16',
        ),
      ),
    ),
    'rdf_mapping' => array(
      'field_image' => array(
        'predicates' => array(
          '0' => 'og:image',
          '1' => 'rdfs:seeAlso',
        ),
        'type' => 'rel',
      ),
      'field_tags' => array(
        'predicates' => array(
          '0' => 'dc:subject',
        ),
        'type' => 'rel',
      ),
      'rdftype' => array(
        '0' => 'sioc:Item',
        '1' => 'foaf:Document',
      ),
      'title' => array(
        'predicates' => array(
          '0' => 'dc:title',
        ),
      ),
      'created' => array(
        'predicates' => array(
          '0' => 'dc:date',
          '1' => 'dc:created',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
      'changed' => array(
        'predicates' => array(
          '0' => 'dc:modified',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
      'body' => array(
        'predicates' => array(
          '0' => 'content:encoded',
        ),
      ),
      'uid' => array(
        'predicates' => array(
          '0' => 'sioc:has_creator',
        ),
        'type' => 'rel',
      ),
      'name' => array(
        'predicates' => array(
          '0' => 'foaf:name',
        ),
      ),
      'comment_count' => array(
        'predicates' => array(
          '0' => 'sioc:num_replies',
        ),
        'datatype' => 'xsd:integer',
      ),
      'last_activity' => array(
        'predicates' => array(
          '0' => 'sioc:last_activity_date',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
    ),
    'cid' => '0',
    'last_comment_timestamp' => '1330587090',
    'last_comment_name' => NULL,
    'last_comment_uid' => '1',
    'comment_count' => '0',
    'name' => 'admin',
    'picture' => '0',
    'data' => 'b:0;',
    'path' => array(
      'pid' => '15',
      'source' => 'node/15',
      'alias' => 'content/test-node',
      'language' => 'nl',
    ),
    'menu' => array(
      'link_title' => '',
      'mlid' => 0,
      'plid' => 0,
      'menu_name' => 'main-menu',
      'weight' => 0,
      'options' => array(),
      'module' => 'menu',
      'expanded' => 0,
      'hidden' => 0,
      'has_children' => 0,
      'customized' => 0,
      'parent_depth_limit' => 8,
      'description' => '',
      'enabled' => 1,
    ),
    'node_export_drupal_version' => '7',
    '#_export_node_encode_object' => '1',
  ),
    array(
    'vid' => '16',
    'uid' => '1',
    'title' => 'Reference node',
    'log' => '',
    'status' => '1',
    'comment' => '1',
    'promote' => '0',
    'sticky' => '0',
    'vuuid' => '83f3a9bd-8dd5-b894-95c7-7d7a99adf34c',
    'nid' => '16',
    'type' => 'page',
    'language' => 'nl',
    'created' => '1330587111',
    'changed' => '1330587275',
    'tnid' => '0',
    'translate' => '0',
    'uuid' => '8f70be94-9c98-1384-1169-000ca71c61d2',
    'revision_timestamp' => '1330587275',
    'revision_uid' => '1',
    'body' => array(),
    'rdf_mapping' => array(
      'rdftype' => array(
        '0' => 'foaf:Document',
      ),
      'title' => array(
        'predicates' => array(
          '0' => 'dc:title',
        ),
      ),
      'created' => array(
        'predicates' => array(
          '0' => 'dc:date',
          '1' => 'dc:created',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
      'changed' => array(
        'predicates' => array(
          '0' => 'dc:modified',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
      'body' => array(
        'predicates' => array(
          '0' => 'content:encoded',
        ),
      ),
      'uid' => array(
        'predicates' => array(
          '0' => 'sioc:has_creator',
        ),
        'type' => 'rel',
      ),
      'name' => array(
        'predicates' => array(
          '0' => 'foaf:name',
        ),
      ),
      'comment_count' => array(
        'predicates' => array(
          '0' => 'sioc:num_replies',
        ),
        'datatype' => 'xsd:integer',
      ),
      'last_activity' => array(
        'predicates' => array(
          '0' => 'sioc:last_activity_date',
        ),
        'datatype' => 'xsd:dateTime',
        'callback' => 'date_iso8601',
      ),
    ),
    'cid' => '0',
    'last_comment_timestamp' => '1330587111',
    'last_comment_name' => NULL,
    'last_comment_uid' => '1',
    'comment_count' => '0',
    'name' => 'admin',
    'picture' => '0',
    'data' => 'b:0;',
    'path' => array(
      'pid' => '16',
      'source' => 'node/16',
      'alias' => 'content/reference-node',
      'language' => 'nl',
    ),
    'menu' => array(
      'link_title' => '',
      'mlid' => 0,
      'plid' => 0,
      'menu_name' => 'main-menu',
      'weight' => 0,
      'options' => array(),
      'module' => 'menu',
      'expanded' => 0,
      'hidden' => 0,
      'has_children' => 0,
      'customized' => 0,
      'parent_depth_limit' => 8,
      'description' => '',
      'enabled' => 1,
    ),
    'node_export_drupal_version' => '7',
    '#_export_node_encode_object' => '1',
  ),
)

When I import it again, both get imported but the reference in this is a test node is gone. Maybe this is the same problem as http://drupal.org/node/1336870

Hope that this describes my problem

sjansen’s picture

Title: Can not export node reference » Can not import a node reference
scor’s picture

Category: bug » support
Status: Closed (won't fix) » Active

The initial reported provided more info, his issue hasn't been resolved afaict.

danielb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This has overlap with other issues that were fixed.