Step 1: Creating a Block or Page View display
You will now need to add the MediaFront: Preset field under the Fields section. After you have added this field,
when i go to the fields section in views there is no option for Mediafront or presets ? I have created a default preset called (Player) it is not in the drop down in the fields selection. D7 latest mediafront dev. any help would be great thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | content_types_fields.jpg | 91.35 KB | soulston |
| #3 | content_types_display.jpg | 92.79 KB | soulston |
| #3 | view.jpg | 59.58 KB | soulston |
| #3 | views2.jpg | 111.79 KB | soulston |
| #3 | views3.jpg | 61.54 KB | soulston |
Comments
Comment #1
soulston commentedIn D7:
Firstly go to Structure > Presets
And make sure you have a preset setup. You will see this name in the views formatter when you come to setup the field - if it's not there then the preset isn't setup! (see attached image).
Then in your view I found that I had to have the field that actually held the file content (the filefield), before the mediafront field, kind of like you would do if you were going to rewrite the output of a field, you need the field before the one that is doing the re-writing.
I was then able to create a block that displayed the video player.
Comment #2
Renegadez commentedsoulston
thank you for the help!
I do have a preset created
/admin/structure/presets/mediafront/manage/player
The Player shows in the preset
but when i go to the fields section in VIEWS there is no option for Mediafront or preset or player still I am missing something else maybe I need to setup a CONTENT TYPE as well? In VIEWS under the FIELDS this is what FIELDS I a have to select from I am sure I am missing something simple. is it possible for you to export your preset so I can compare it to the one I made and see if thats were I am going wrong? thanks for your help! Renz
Fields: body
Appears in: node:page, node:article, node:blog, node:video
Fields: field_image
Appears in: node:article
Fields: field_image_upload
Appears in: node:video
Fields: field_tags
Appears in: node:article, media:audio, media:image, media:video, media:default
Fields: field_video_upload
Appears in: node:video
Fields: media_gallery_allow_download
Appears in: node:media_gallery
Fields: media_gallery_block_columns
Appears in: node:media_gallery
Fields: media_gallery_block_rows
Appears in: node:media_gallery
Fields: media_gallery_collection
Appears in: node:media_gallery
Fields: media_gallery_columns
Appears in: taxonomy_term:gallery_collections, node:media_gallery
Fields: media_gallery_description
Appears in: node:media_gallery
Fields: media_gallery_expose_block
Appears in: node:media_gallery
Fields: media_gallery_format
Appears in: node:media_gallery
Fields: media_gallery_image_info_where
Appears in: taxonomy_term:gallery_collections, node:media_gallery
Fields: media_gallery_lightbox_extras
Appears in: node:media_gallery
Fields: media_gallery_media
Appears in: node:media_gallery
Fields: media_gallery_rows
Appears in: taxonomy_term:gallery_collections, node:media_gallery
Comment #3
soulston commentedAre you using a view to output this - strangely mine only seems to work when the style is set to "Unformatted"?
I do have a content type so maybe you should try adding one.
I think you need one with a:
filefield Field
Media Player FIeld
I am using views to output my video's so I'm not sure the display settings need altering - here is my setup.
Comment #4
Renegadez commentedOk Thanks Ill give it a run and report back!
Comment #5
travist commentedI need to update the tutorials because you no longer need to add any field to get MediaFront to work with views. All you need to do is set the style of your block or page to Media Player, and then select your preset. It will then show your view with the media player you selected.
Hope this helps.
Travis.
Comment #6
Renegadez commentedTravis what version of Views is this tested with I am using the current dev version as of feb25 which seems to have a lot of changes as some of my other modules were affected Thanks Renz
Comment #7
travist commentedOne thing that this may be...
I have already committed a fix for this, but one thing that the old version of MediaFront for Drupal 7 requires is for you to add "Node: Nid" to your view fields ( and set it as hidden if you like ).
So, try adding "Node: Nid" as a field in your view and see if you have better luck. If so, then with the latest DEV version, this should be fixed.
Please let me know.
Thanks,
Travis.
Comment #8
liquidcms commentedanyone get this working yet?
not sure the instructions above make much sense, travist says:
- select Style (now called Format in D7) as MediaPlayer
- add NID as a field
BUT i get MediaPlayer format stating i can't add fields (which is another issue).
anyway, played around with this a lot.. but still no luck.. i get player with throbber only in my view block (full node plays fine)
Comment #9
liquidcms commentedchanging title and changing this to a bug to highlight the issue better.
Comment #10
travist commentedMy apologies for the confusion.. Mediafront certainly does work with Views setup and I need to spend some time updating documentation to reflect the changes that have been made with the module and its views integration. Basically everything is controlled by setting the View style to be Media Player where you can then select the preset within that style. That is all that is really needed to get the player to show up within a view, so no field necessary.
Comment #11
liquidcms commentedhey Travis, as in email i just sent you.. the issue is 2 things:
- what you are suggesting doesn't actually work
- even if it does; not being able to add fields is a huge limitation (but in the version i have, i have 2 formats available (you keep saying Style but i think you mean Format, unless there is a Style in D7 Views somewhere and that is the part i am missing here) and the Media Player Advanced "format" does seem to allow adding fields (but also doesn't work)
Comment #12
EvanDonovan commentedI am also having this issue - whether I just put a MediaFront Player field into a view or use either the MediaPlayer or MediaPlayer Advanced Format for the view, the actual video content from the node does not load into the player. I tried using Content: Nid as a source, as well as Content: Video (the media field itself).
Comment #13
liquidcms commentedi think it works with Unformatted fields. I don't think it works with any of the Media formats.
Comment #14
EvanDonovan commentedSo just an unformatted field with a URL for a video will work?
Comment #15
liquidcms commentedhttp://screencast.com/t/qGee76pga7K7
Comment #16
EvanDonovan commentedAh, I see what you mean...in my case, I was trying to add them to a Views Slideshow, so that doesn't help me, I think. I will keep looking into it.