Add Thumbnail Preview to jqmWindow file-browser for image files

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  sc0ttkclark 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #167433

    WallabyKid
    Member
    Post count: 8

    Thought this might be of interest…
    When File-Upload column types are used predominantly for images,
    it bugged me that when using the jqmWindow file-browser it was often
    difficult to find and select the desired image file in the absence of
    good, self-explanatory image filenames.

    To overcome this, I’ve added a little preview DIV just to the right of the
    jqmWindow DIV which displays a thumbnail preview for image type files
    onmouseover of the image filenames in the filebox.

    alt text

    The caveat however, is that it requires modification of 4 core pods files,

    1. pods/ui/ajax/misc.php
    2. pods/ui/js/pods.ui.js
    3. pods/ui/input_form.php
    4. pods/ui/style.css

    Of course this means that unless Scott decides to incorporate this, you’ll lose the preview upon updating pods.

    Mods as follows:

    In – pods/ui/ajax/misc.php

    Replace…

    with…

    In – pods/ui/js/pods.ui.js

    ADD

    In – pods/ui/input_form.php

    ADD…

    AFTER… < div class="filebox">< /div>’ IN < div class="jqmWindow" id="dialog">

    In – pods/ui/style.css

    ADD

    And there you have it. A nice little thumbnail preview when mousing over your image filenames in the jqmWindow filebox. Now… maybe somebody can see a way to reformulate this as a package, but that’s well above my pay grade!

    #167434

    sc0ttkclark
    Keymaster
    Post count: 791

    You know what, Pods 2.0 has a completely revamped Media Library integration with a much better browser and interface —– BUT —– This would actually make a great addition to the existing interface with minimal work on my part to incorporate since you’ve done the hard work of actually doing it for me ;)

    I’ll patch this into the next release as an enhancement, thanks for your contribution to Pods core and keep it up – patches are always welcome around here and your help is invaluable to the project’s health. I encourage everyone else to make leaps like this, I’m more than likely going to include it if it makes sense and is minimally invasive to the codebase for 1.x (focusing more on 2.0, if you want to patch that then go at it too!)

    #168295

    sc0ttkclark
    Keymaster
    Post count: 791

    This will finally go into Pods 1.14.4, sorry for the wait, been so busy with getting Pods 2.0 to go out next week :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting