When I importing nodes even if there is a path setting the node does not get imported.
What am I doing wrong?
JOsh
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | node_export.pages_.pathauto-clobber-fix.inc_.patch | 712 bytes | James Andres |
When I importing nodes even if there is a path setting the node does not get imported.
What am I doing wrong?
JOsh
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | node_export.pages_.pathauto-clobber-fix.inc_.patch | 712 bytes | James Andres |
Comments
Comment #1
danielb commentedNo idea. Are you experiencing problems in one particular situation, or have you not been able to get the module to work at all? Can you try on a really basic node type?
Also make sure the same modules are enabled on both sites, and the content type and it's fields are set up the same way on both sites.
Comment #2
danielb commentedComment #3
danielb commentedPlease try the latest versions 2.x, there have been a few bug fixes. Feel free to reopen if you still encounter this path thing.
Comment #4
ngmaloney commentedI'm running node_export 6.x-2.9 on a vanilla Drupal 6.12 install. The export returns NULL as the path. I created a test node, saved it, and ran the export. Below are the results:
Any ideas on what could be causing the PATH not to export?
Comment #5
ngmaloney commentedI made a quick modification to node_export.pages.inc that seemed to resolve the problem.
On line 69 there is the following line of code:
I changed it to:
and that seems to have resolved the problem. I'd be happy to submit a patch if needed.
Comment #6
danielb commentedCould probably just remove that line. Don't worry about a patch, I'll look into this a bit further - perhaps there are other fields that should be transferred that aren't, and maybe I will have to make it configurable just in case it messes with anybody's expectations.
Comment #7
James Andres commentedAlso watch out for the pathauto module. The default settings for pathauto are to destroy your path and create a new "pathauto-ish" one. Either change that default setting, or tweak your node exports like this:
Original node code:
Pathauto "fixed" node code:
Hopefully somebody finds that helpful :-)
James.
Comment #8
James Andres commentedHere's a patch for the fix.
Comment #9
danielb commentedIn the new release this will be a configuration option.
Comment #11
joachim commentedA notification at the top of admin/content/import or when the node is created would be very useful, otherwise this behaviour looks like a bug!
Something like:
"The imported node's path, authored date and whatever have been reset. This behaviour can be changed in the settings."
Comment #12
danielb commentedNo and this is not a good place to discuss that idea as it could apply to a more general case.
Comment #13
joachim commentedUnexpected, undocumented behaviour looks like a bug to the user. That's a general principle.
Second principle: users will start using your module without first going to the settings page.
So some kind of notification of what is going on would be polite.
I can file a new bug if you like, though if you're just going to close it there's not much point :/
Comment #14
danielb commentedOK let's discuss this here http://drupal.org/node/610074