Closed (fixed)
Project:
Weight
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2017 at 09:54 UTC
Updated:
27 Dec 2023 at 13:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
y_h commentedThe weight 7.x-2.x branch had this implemented.
I had the same problem so i made a patch for the 7.x-3.x branch.
Weight is a field type now so when you're mapping your field sources to targets you can now select all fields of type weight.
Comment #3
bellwether commentedI created a second field for my weight column in my content type, and then made a rule that on event: Before saving an item imported via [my content type] importer, committed the action "Set a data value" for Parameter: Data: [node:field-weight] using my second field, Parameter: Data: [node:field-prominence]... Ends up with a duplicate field to weight, but at least I can import it.
Comment #4
sohal khatwani commentedThanks @y_h for the patch and @bellweather for the workaround. We also used the workaround i.e. first did the import and then select all the content from the content type and gave it a weight. I have not tried the patch as yet. Cheers.
Comment #5
ziomizar commentedI guess that any new feature will be introduced in the 7.x-3.1 version
Comment #6
maurizio.ganovelliI'm sorry to reopen this issue but seems like this feature is still missing in 7.x-3.1.
Patch above doesn't apply cleanly (some CRLF problems) and in case weight field is not on the input feed, using NULL as default value causes an error:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_weight_value' cannot be null
Attached patch set as default a 0 value: can you review and commit it, since would be great feature to have?
Thank you in advance.
Comment #7
vladimirausThank you. Approved. 😃
Comment #9
vladimirausCommitted! 🥂
Comment #11
argiepiano commentedThis patch only offer feeds support for nodes. How about other core entities like user and taxonomy terms?
Comment #12
vladimiraus@argiepiano I'd recommend to open another issue and list possible test cases.