Media Pane is a module that combines functionality from Media module (7.x-2.x) and Fieldable panels panes module to give a user a very simple and powerful interface for adding media content to their site.
Media panes functionality includes choice of custom view modes, making content link to internal and external urls and having a custom text overlay (on image media only).
Project page
http://drupal.org/sandbox/yanniboi/1955490
Git repository
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/yanniboi/1955490.git media_pane
Notes:
This module has dependencies on Fieldable panels panes and Mediafield (submodule of Media).
Reviews I have made:
http://drupal.org/node/1881052#comment-7263884 on #1881052: [D7] Name day reminder
http://drupal.org/node/1957164#comment-7264052 on #1957164: [D7] Commerce Booking
http://drupal.org/node/1962734#comment-7264086 on #1962734: [D7] Mobile Cache
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | media_pane-view_mode_ui.png | 64.78 KB | dman |
| #11 | media_pane-preview.png | 47.82 KB | dman |
Comments
Comment #1
yanniboi commentedI am postponing the review of this module while I run a few more tests on the module so I am not wasting anyone's time.
Comment #2
yanniboi commentedI Improved the code style after reviewing code with the PAReview.sh script and I tidied up the code in the template file. I now think the module is ready for review.
Comment #3
jongagne commentedCode sniffer found a couple warnings but no real errors:
I only took a quick look at it but I believe you're missing an uninstall hook and your readme.txt installation section is more advice than installation instruction.
Comment #4
yanniboi commentedThanks! I have added an uninstall hook, fixed all of the style errors. What would you recommend I do about the README file? I only ever read them when there is a third party library to be installed...
Comment #5
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5.0
PA robot commentedChanged the git instructions to reflect new module branch
Comment #5.1
yanniboi commentedUpdated Revisions I have made
Comment #5.2
yanniboi commentedMade changed to list of reviewed modules
Comment #6
rlmumfordHi Yanniboi!
Automatic Review
Manual Review
media_pane_get_view_mode_optionswould be helpful.Implements hook_preprocess_file_entity()on line 60 and 90.Other than that all looks good :)
Comment #7
yanniboi commentedThanks rlmumford!
All great input. Have fixed everything you pointed out and have added a picture of the UI to the project page as well as a picture of the result to show what the module does.
Comment #8
yanniboi commentedI am adding the PAReview: review bonus tag because I have done 3 other project reviews as shown in the project description notes.
Comment #9
klausimanual review:
Otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to dman as he might have time to take a final look at this.
Comment #10
yanniboi commentedGreat, thanks klausi!
I have taken your advice and changed the theme key to make it module specific.
Thanks also to everyone who helped with the review process, its all been really helpful!
Comment #11
dman commentedGiven the code reviews above have passed, I'm now trialling as an end-user.
Coming in cold, I find the project page a little unclear as to what it sells and enables me to do. If we are all familiar with what fieldable_panels_panes are it may be a little more natural. A one-paragraph walkthrough on how to use it may help there. It's just a suggestion.
On the modules page (via the .info file) this should this be grouped with 'Media' or the 'Panels' section. Currently it's just in 'Other'.
On first install, (new clean site) I get death!
This is probably because I chose to test on a 'Minimal' install and therefore didn't have some of your assumed core modules on. This is why I tested like this - to uncover undocumented dependencies. Though (maybe) rare, this is because you are invoking the field 'list_text' in 'media_pane_install' without confirming or requiring that the core list.module is available.
Quick fix is to add that to your requirements[]
After disabling and uninstalling this module, enabling 'list' and re-enabling, I seem to be up again.
Without a HOWTO on what happens next, I check the README. Still not immediately sure how to proceed as a first-timer. Probably less of an issue if you are already using panels and want to add this widget.
I see things coming up on the Panels admin, so something is working. Hm,
I'll enable Panels_node and see.
* Create a panles node and add content. I see 'media pane' as a thing I can add.
* It looks like it's available as a top-level or uncategorixed content element (not in a vertical tabs group). Thats ... probably OK for this one, though most pane providers do classify themselves as a 'Widget' or something.
* Using it triggers the 'Media' selector correctly, even though I haven't configured anything else. so that's as expected.
* I see the view mode coming up with the image styles, so now I'm understanding how this widget is handy.
But, um. hm, we have two very similar "View mode" selectors here.
- View Modes : "Select which view mode should be used to display the media"
- View Mode : "Select a view mode for this pane."
A little unclear here. may need better ordering or grouping. What is the second one doing in this context, is is just overlap with panels core options?
It looks like half the options are dependent on others. Though just a nice-to-have suggestion, I'd point you to the #states utility in Form API that would enhance that. Just FYI.
*And preview:
Hm. I was right about the UI being confusing. I thought by selecting the "view mode" image style I would be seeing the picture on the panel when it displays. Instead I'm getting the generic 'file attachment' icon.
Is this broken?
I'll stop here for now.
In general I now understand the idea of what it wants to do, and it's sure useful for that. +1 worthy there!
* must list the required module to avoid death. REQUIRED
* could be clearer on the project page, but you can do that in your own time. SUGGESTED
* should be clearer on the form UI - sort out the weighting, maybe group a little or use dependent visibility. RECOMMENDED
* does not actually work for me! REQUIRED. If I'm using it wrong (which is likely), then it's documentation:required.
Comment #12
yanniboi commentedThanks, dman. When one spends a lot of time focussing on code style and functionality its easy to forget about UX so this is really helpful!
In the interest of curing death, I have added the dependency on list module and moved it to the media section on the module page.
I have done some work to tidy up the UI including building in form states, sorting out the weight, and improving the descriptions on the View mode fields and adding links to the retrospective configuration pages which hopefully clears up some of the confusion. FYI, the reason there are two view mode fields is because one is the view mode for the fieldable panels pane (in case the user decides to add even more fields to the media pane and have different display modes) and the other is for the display of the file entity that is being rendered in the media pane. The new naming convention for the fields should help with this as well.
This is because media module is not configured out of the box. Before any media is successfully output you need to configure the display of the media (admin/structure/file-types). I have added documentation for this to the project page and the README.txt.
I have also done a quick screencast (no sound yet) showing what media pane can do and attached it to the project page.
Comment #13
dman commentedYeah, we all get a little to close to making things *work* to be able to communicate what the original intent was sometimes.
That sounds very cool.
I've come in deliberately ignorant of the intent, so used my fresh eyes for a "smoke test".
The "view modes" confusion makes some sense when explained, though I would not like to explain that to an end user. Improved UI labels will certainly solve most of that.
I took the direct route (this time) to installing just this module and following the prompts (if any) it gave me to get a result. I did suspect I'd missed a step to get the display actually working. Not having used the current version of Media a lot yet, I didn't have the view displays pre-configured in any way.
Maybe it's an oddity in Media itself, but I did recognize the image derivatives offered as being displays that the system should already know how to render, so was surprised when the using the options had no effect. Seeing your screencast, I appreciate that you were letting Media module do what it does, and so avoiding duplication.
Boosting the project page and README with explanations of this is a win for everyone.
I really enjoyed the screencast, and I think you should be proud of the front-end UI you've integrated there. I tried it 'minimal' so didn't get to take advantage of the overlay and in-place editing that really enhances how useful this module can be for this use-case.
So, without needing to re-test, as my issues were largely about the UX, I'm totally happy to +1 and promote this one today.
yanniboi is now a "vetted" user, Thanks for your contribution, yanniboi!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
You should find yourself with the ability to "promote the (sandbox) to a full project. " - it's a tab on your project edit page.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #14.0
(not verified) commentedAdded a third module to list of reviewed modules