Hi,
I did a basic search but couldn't find anything similar to the issue I have. So, here's a new issue:
Background:
I am trying to create a playlist with Views as per this guide, but with a few modifications as I am using the Video module. The field provided by Video module also includes a thumbnail.
Essentially, I am trying to create a playlist not across different nodes, but different videos on the same node (video field with unlimited items). To get these fields in the view, I am using the Views Field module.
I have got all the parts until here working. With unformatted display style, the rows appear correctly. I am able to see all the videos on a particular node along with their thumbnails.
Problem
The issue starts when I change the display style to mediafront. With just the video field, the player works fine. I am setting the MediaFront settings to Field Type = 'Media' and Media Type = 'Media Content' as in the guide. The problem starts when I add the thumbnail field too. Somehow, the option gets overwritten. When I try to set the Field Type = 'Image' for this field, this gets overwritten for the video field too.
I did a little digging in the code and found that these options are stored using the handler. Both of these fields are the same handler, in fact the same field "File: Path" but with different relationships. However, their options seem to be stored in the same variable internally because they are the same handler.
I am trying to work on a patch but I am not that experienced with views integration and I just started using this module. I imagine this might be a simple fix by just changing the data to be stored under a different name (maybe handler combined with field id or something).
Please let me know if you need more details.
Thank you,
Husain
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix-video-field-1940294-3.patch.txt | 2.09 KB | Antoine Vigneau |
| #2 | fix-video-field-1940294-2.patch | 1.75 KB | nagy.balint |
Comments
Comment #1
hussainwebJust to update. I tried this today even on 7.x-2.x-dev and its the same problem. I haven't got a chance to try and fix this yet to post a patch. Hopefully soon.
Its a pity that I finally found a solution to my problem of two years and I am held back only due to this small problem. :(
Comment #2
nagy.balint commentedYou can try this patch.
Did it for myself but it _might_ work.
Comment #3
Antoine Vigneau commentedI correct a little bit the #2 patch because it missing the test on the right field name before return it (for the first hunt).
Then I change the order of conditions in mediafront_views_get_options() to return $options, because the test (empty($handler->options['mediafront'])) was done before the handler is really defined. This cause problem if we export the view and the mediafront options in a feature: field options was not took into account while they are well featurized.