Closed (fixed)
Project:
Weight
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2012 at 18:34 UTC
Updated:
3 Oct 2015 at 21:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
delta commentedyou can use the code in http://drupal.org/node/1626578#comment-6188036
Comment #2
mikeryanYes, the Weight module is the right place to ask.
Comment #3
aendra commented@delta -- That's for physical weight; Weight module deals with item weighting in the sense "make this piece of content float higher in listings than that piece of content."
@mikeryan -- Good to know; thanks!
Comment #4
davisbenI'm not too familiar with the Migrate module and won't have the time to look into it for at least a few weeks. I'd be glad to review a patch if someone can come up with one.
Comment #5
mirsoft commentedNot sure if it helps, but for some simple scenarios it simply helps to migrate the items into destination system in correct order (especially if you are migrating into clean system) by correct setting of ORDER BY source SQL query. Then, the nodes will be inserted into target system in desired order and you get the correct ordering if you add Node: ID to Weight view as second parameter to Weight: Weight.
Comment #5.0
mirsoft commentedDerp, I meant "field handler" and not "destination handler".
Comment #6
lee20 commentedAttached is a patch which adds migrate support for weight. The calls to _weight_get_settings() may get heavy if your migrations have a lot of rows. I opened #2256799: Use static caching in _weight_get_settings() to deal with that.
Comment #7
lee20 commentedComment #9
davisbenCommitted. Thanks for the patch!
Comment #10
wieringen commentedI'm trying to do a migration from d7 to d7. After this patch I have a "weight" destination field. However there is no source field to map from.
Comment #12
summit commentedHi,
Does anybody have code how to migrate weight?
What are the source and destination fields please?
I have the destination fieldhandler...but no D6 source field to choose from within Migrate UI..
greetings, Martijn