reems Posted July 30, 2014 Posted July 30, 2014 Hi, With the CropImage Module thumbnails are created with a prefix and stored in the same directory as the original file. Instead, I would like the thumbnails be saved in a subdirectory with the same name as the original file. This because of a slideshow script I use. What is the easiest way of tweaking the module to accomplish this? Thanks, Reems
Joss Posted July 30, 2014 Posted July 30, 2014 Hi Reems Generally, I would think it a whole lot better to work with a more versatile slideshow script. I am assuming you are using one that creates a slideshow from the whatever is in a folder, but that is rather limiting. If you use a script where you simply list the images using the PW API with a foreach loop, then you can take advantage of being able to do things like change the order they appear in by changing the order of the images in the field. You can loop through the thumbnails (whether created by the cropimage module, or thumbnails created using the API on a normal images field) separately from the main images very easily. I must admit, I have not come across a script that just uses folder contents for a long, long time - I didn't think anyone wrote them like that anymore.
reems Posted July 30, 2014 Author Posted July 30, 2014 Hi Joss. I agree, but scripts for background slideshows are limited. And in this case images are indeed loaded using the PW api and a foreach loop. Only for the thumbnails, a directory is needed. I asked the slideshow developers if that could be changed, but it will take some time still. So in the time between I'm looking for a solution as mentioned in my post.
MadeMyDay Posted July 30, 2014 Posted July 30, 2014 Can you provide a link to that said slideshow? Seems very limited.
reems Posted July 30, 2014 Author Posted July 30, 2014 http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-bgndgallery/
horst Posted July 30, 2014 Posted July 30, 2014 You should use http://buildinternet.com/project/supersized/ or search for superbgimage and use that one. Highly customizable! 1
Joss Posted July 30, 2014 Posted July 30, 2014 Loads of them listed on Google, search for JQuery Background Slide Show The main problem with using a folder based system is that you are completely stuck with it on the page you want - one version only. With any other system, you can create a different slideshow on every page if you want, or even several on each page, all easily customised from the back end. 1
arjen Posted July 30, 2014 Posted July 30, 2014 If you want to use that one, you can also do something like this: myGallery = new mbBgndGallery({ containment:"body", // or "#myGalleryElement" images:[ "elements/1.jpg", "elements/2.jpg", "elements/3.jpg", "elements/4.jpg", "elements/5.jpg" ], }); That way you don't have to read a directory or folder.
Joss Posted July 30, 2014 Posted July 30, 2014 Arjen, they don't seem to offer that option for the thumbnail strip - just the main images, for some odd reason.
arjen Posted July 30, 2014 Posted July 30, 2014 Thanks for pointing that out Joss. Skip it and move on to the next one without a folder based system from the nineties. 1
reems Posted July 30, 2014 Author Posted July 30, 2014 I have found and tried indeed other scripts, but then they had other problems. So, my original question still stands . But, I will keep on searching....
Joss Posted July 30, 2014 Posted July 30, 2014 Reems, if you were to specify exactly what you need the functionality to do on the page (without thinking about the script you are trying to use), what would it be?
kongondo Posted July 30, 2014 Posted July 30, 2014 Reems, if you were to specify exactly what you need the functionality to do on the page (without thinking about the script you are trying to use), what would it be? background slideshows? @Reems What 'other' problems did you encounter with the other scripts? Maybe better to state those here and get (hopefully) solutions rather than use a script that constrains you... 1
Joss Posted July 30, 2014 Posted July 30, 2014 I mean, does it need to have transitions and effects, thumbnails (obviously), html content ... that sort of thing
reems Posted July 30, 2014 Author Posted July 30, 2014 My idea was not to bother you with all the problems that I had with other gallery scripts. It's a PW forum, not a JQuery forum. But, maybe, knowing that (what Joss asks) I need only a basic fullscreen background slideshow, with the possibility to: transitions and effects controls thumbnails including flexibility in placing generating the image and thumbnail list with the PW api as I already do now for the images itself Then....maybe one of you has already good experience with another script then BgndGallery. See as it is now http://www.travelinluxury.nl The controls on the left in the footer are also part of the script.
MadeMyDay Posted July 30, 2014 Posted July 30, 2014 Well, I always use Cycle2 because it is very open configurable and nearly everything is possible. For your thumbnails for example look here: http://jquery.malsup.com/cycle2/demo/pager.php If you don't want to build your own full size background, just use this on top of cycle2: http://www.aaronvanderzwan.com/maximage/ 3
Joss Posted July 30, 2014 Posted July 30, 2014 There are a few here: http://www.freshdesignweb.com/fullscreen-jquery-slider.html Really, any responsive slideshow can be used in the background - it is just a case of positioning your content over the top 2
reems Posted July 31, 2014 Author Posted July 31, 2014 I checked the Cycle2 in combination with the maximage plugin. Looks perfect. I will test those coming weekend. Thanks for all your comments.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now