First of all, what a great module - thanks!
Among others, I have two fields in a content type - photos and videos. Each node may have images & videos, both, either or neither. I have found that when the node has an image and no video, media front returns an empty box. If no image then no media front either - which is fine but leads me to realize it's displaying the video box because it thinks it has content when the node has an image.
Trying to turn this off I have selected
- "none" for both Mediafront settings in the Image field;
- In the View selected "Don't display if No results ..."
- In the Preset have unselected "Show player when empty"
with no luck.
I am using the File Upload/Image field for images and the Media module for videos - not sure if I should only be using Media?
Any suggestions?
Thanks
-Neil
Comments
Comment #1
hdcwebteam commentedI have a similar issue -
- content type with both image field and a file upload field to use with mediafront.
- image field's Mediafront settings are set to "none".
- still seeing an empty player when there's no video uploaded, even though I have unchecked 'Show player when empty'
Comment #2
bradwade commentedI experienced a similar issue using mediafront 7.x-1.4 with media module 7.x-1.0-rc2 when displaying a node using a media image field, media video field, and a mediafront player field: an empty player displays when no video is uploaded.
I worked around this in the theme layer by preprocessing the node and unsetting the video player if there is nothing in the video field:
where field_article_video = media's video field asset
and field_article_video_player = mediafront's video player.
Comment #3
pixelsweatshop commentedI am getting the same issue with completely empty fields (other than title), as the video and video thumbnail field are both optional for the end user.
Comment #4
pixelsweatshop commentedI must have missed this, but disabling "Show player when empty" in the mediafront preset that your display is using fixes this issue. (it's under "Presentation Settings").
Although this then disables the "Player Preview" on the media preset edit screen. I have opened another issue for that #1322802: Disabling "Show player when empty" also disables "Player Preview" on the mediafront preset edit screen.
Comment #5
danihobbs commentedI am experiencing the same issue here, and unfortunately bradwade's solution is not working for me even though I changed the field names to suit my site... Has anybody else come up with a solution?
Comment #6
travist commentedEdit your Image field settings... there you will see MediaFront settings... Set all of them to say "None" then press save. That will tell the player to not load those images, which should then hide the player even if an image in that field is shown.
Let me know if that works.