سؤال

What happened to /admin/content/types/import in D7? Can you still import a content type (not the actual data) in D7? In D6 you could at /admin/content/types/import. Has this feature just moved somewhere else?

I want to export some nodes from a D6 site to D7 (not the entire site) with drupal.org/project/node_export. However the content type does not exist on my new D7 site.

In general, what is the best way to upgrade some CCK data from a D6 site to D7 without doing a full upgrade (they are different sites).

Thanks.

هل كانت مفيدة؟

المحلول

While the ability to define new fields is in built in Drupal 7's admin UI, a number of D6 features still remain in the contrib 'CCK' project, including code to upgrade old fields from contrib modules to the D7 field structure. You'll need to grab the latest version of CCK and use its "content migrate" module, and also keep a close on these three in-progress issues. The field migration code for many D6 field types isn't completed, and before flipping the switch on a production site you'll want to make sure that the upgrade path works smoothly.

While the full D7 upgrade isn't what you're gunning for, those issues are the ones that will need to be resolved for D6 field structures (what you'd get from something like content_export and content_import) to be pulled into D7 successfully.

(By request, a restored link to the D6 to D7 upgrade flowchart -- the original version from the first post was redone by an actual designer for a D7 Upgrade podcast, and now looks less like a tangle of snakes!)

نصائح أخرى

If you want to import content you can look in to this module: http://drupal.org/project/defaultcontent

This seems to be not possible ATM since CCK moved into core.

You might have a read at the Drupal sites that is discussing this and writing a module/workarounds/...

If you use the features module, you can import the content type or other pieces (such as taxonomy, ...). I have successfully imported the content types, but now I'm stuck as to how to import the content. Ive been pointed towards feeds and am trying to figure that out.

Now you can add new content types under Structure -> Content Types

admin/structure/types

Though there is no option to "import", you will be able to add them from there. But I guess you won't have too much content types.

Node export maintainer here - I wouldn't even bother trying this. I'm really stuck on converting D6 nodes to D7, and how to convert CCK and taxonomy to the D7 Fields, and the lack of content type import makes it even more difficult. Quite disappointing. If anyone can lend a hand please seek out the node_export issue queue.

To import content you can use feeds or migrate module

You can do this using a combination of Features (on D6) and Bundle Copy (on D7). I wrote a script that can convert a Features module content types into Bundle Copy's import format.

A more complete set of instructions is here: https://thoughtfuldragon.com/converting-drupal-6-cck-content-types-into-drupal-7-entity-bundles/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top