Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload replacement for Isotope #52

Open
brandbrilliance opened this issue Jul 4, 2012 · 6 comments
Open

Upload replacement for Isotope #52

brandbrilliance opened this issue Jul 4, 2012 · 6 comments

Comments

@brandbrilliance
Copy link

Since we can't use the widget as-is, perhaps you can ease the story for others to develop a version that integrates with isotope as well. Then people can just install e.g. isotope_valums and it will replace the tl_iso_products uploader with a values file uploader to upload multiple files. Maybe this is a bit too complex, because the isotope uploader is also a bit more than that.

@andreasisaak
Copy link
Contributor

Its not possible to replace the isotope uploader widget with the valums widget via dca replacement?

@brandbrilliance
Copy link
Author

nope. Isotope uses a very special upload widget.

  1. It uploads files and then stores them internally in the /isotope/ folder under the first letter of the filename, e.g.
    toscana-figurine.jpg => isotope/t/toscana-figurine.jpg
  2. It has a special area where the thumbnail is shown and then all the meta-data as well.

what could be done is really to just replace the "upload" button part of the widget, e.g. we'd have to write a new widget.

@backbone87
Copy link

For compat with the upcomming isotope 1.4.0 release (after 1.4.0beta2),
change the ValumsBeFileUpload::uploadTo method like this:


    /**
     * Necessary function for DC_Folder
     * 
     * @param string $strFolder
     * @param string $strType
     * @return array 
     */
    public function uploadTo($strFolder, $strType)
    {
        $arrFiles = array();
        if(count($_SESSION['VALUM_FILES'])) foreach ($_SESSION['VALUM_FILES'] as $value) {
            $arrFiles[] = $value['tmp_name'];
        }
        $this->removeSessionData();
        return $arrFiles;
    }

@AndreasA
Copy link

AndreasA commented Jan 5, 2013

Hello,

just wondering with the release of Isotope 1.4.0rc1, how do I get valumsFileUploader to work with that one correctly.?

It is displayed and it also "uploads" the image but neither is it resized nor is it replaced in Isotope. Even with the above mentioned change to ValumsBeFileUpload::uploadTo

EDIT:
OK. It works after I press save - however, it would be great if it would be automatically refreshed without the need to press save (but I don't know how easily that can be done or if it is yet possible with Isotop at all).

@backbone87
Copy link

auto refresh is not suitable, because it would launch a reload as soon as all uploading files are completed, even if you are just selecting another file to upload, which will be closed automatically.

@AndreasA
Copy link

AndreasA commented Jan 8, 2013

I meant only for the pictures (Ajax like) not the whole product but I guess Isotope would require an update then.

However, what would be great would be a button that basically does the same as save product, just that it is directly under upload because that way it would be clearer what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants