Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using plupload to bulk upload multiple videos to one node. It's working great. The problem is, I would like to use rules to create a product for each video uploaded. Unfortunately, it seems that I cannot access this field in rules. I did bring the content type into scope. It would be very helpful to be able to reference the original, converted and thumbnail files. Thanks.
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedI don't have much experience with rules. In 7.x-2.x-dev I changed the way the video data is loaded, so now all transcoded videos are available in the data array associated with a field.
Let's say there is a node with a field called video and it has one entry, the array would now look like:
I don't know how rules works internally, you may already be able to access these properties without further modifications to the video module. Unfortunately, I do not have time to expand the rules support of the video module.
Comment #2
keansmith CreditAttribution: keansmith commentedThanks, I will research this and attempt to make what I need to have happen in code. Will update if I make any progress with rules.
Comment #3
Jorrit CreditAttribution: Jorrit commentedHas you been able to get it to work?
Comment #4
keansmith CreditAttribution: keansmith commentedThanks for following up. I haven't gotten it to work in rules, but do see all the properties in the $node.
The goal is to use plupload to create numerous videos at once, then use code, feed or rules to create each video as it's own separate node.
Will update this week with my solution.
Comment #5
keansmith CreditAttribution: keansmith commentedNot sure how to progress with this one.
Comment #6
Jorrit CreditAttribution: Jorrit commented