Closed (fixed)
Project:
Embedded Media Field
Version:
6.x-1.25
Component:
Embedded Media Thumbnail
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 May 2009 at 11:26 UTC
Updated:
3 Nov 2010 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex ua commentedThere is a Views filter for Emfield which does this for you. Under filters you should find something like (obviously your content type and field will have a different name):
Content: video_emfield (field_video_emfield)
Embedded Video - Appears in: External Video
Comment #2
highvoltage commentedHey there, thanks for the quick response. ^_^
That is what I'm using for the field within views. Screenshot of my fields in the view:
http://img196.imageshack.us/img196/8042/view02.png
Comment #3
alex ua commentedI understand, but you are asking how to filter out nodes without emfield content, so you need to do that under filters, not fields.
Comment #4
highvoltage commentedUgh, well I feel like an idiot. I read that as field not filter. I set filter to Is not empty(NULL) and it's working properly. Thank you.
Comment #5
kbeck303 commentedI have a similar issue.
I have a blog view - title, body, photos, and video embed. Not all blog post have photos or video, so I set the field setting to "hide if empty".
The photo "hide if empty" hides the entire photo field div (div class="views-field-field-blog-photos-fid"). But the video "hide if empty" hides the (div class="field-content"), but leaves the main div (div class="views-field-field-blog-video-embed")
Comment #6
jaarong commentedI have the same issue. My users can post a photo or a video. Views has fields for both and just hides the one that is empty. The imagefield works nicely when nothing is there (and there is video), but the field with a video ends up looking for a thumbnail that isn't there when there is an image but no video.
I don't see how a filter would work for me, since if there was an image and no video, it would just filter it out. I want an either/or situation to be displayed.
Comment #7
mattfielding commentedI'm facing the same issue as subnet_rx. It seems as though the video thumbnail field has something in it for every node and hence the 'hide if empty' option in views has no effect, showing a broken image link instead.
Comment #8
mattfielding commentedI had to use Views Custom Field to work around the issue
Comment #9
gordon commentedsubscribe
Comment #10
gordon commentedHere is a fix for this issue which will return NULL when there is no embedded link. Good for optional fields
Comment #11
vthirteen commentedthe patch at #10 works for me.
Comment #12
aaron commentedcommitted, thanks @gordon!