Closed (fixed)
Project:
Node export
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 00:49 UTC
Updated:
9 Jul 2009 at 12:10 UTC
Here's a patch that adds non-executing comments to the export output, giving the title of the node that any item with the keyname "nid" points to.
If, like me, you're using Node Export as a backup, it's reassuring to be able to work out what references what from the export text alone.
| Comment | File | Size | Author |
|---|---|---|---|
| node_export_nid_comment.diff | 632 bytes | dannyobrien |
Comments
Comment #1
danielb commentedNot sure I'm comfortable with that being there by default - makes a few assumptions that could lead to problems (like values for a nid field being a valid node id), and the output is a bit anti-drupal (are you a perl programmer??). Perhaps I will provide a hook so this can be done another way that is configurable. I also think in a majority of use cases the 'nid' values are completely misleading, and any references will be inaccurate on the destination site, so this might lead people to try and read the export code and subsequently get the wrong idea.
could become
and then you do
Will think about it some more.
Comment #2
dannyobrien commentedInteresting! Thanks for the suggestions!
Comment #3
danielb commentedI've added the hook into the module. Hopefully this is satisfactory so you can change each array element to add your own output.