Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

cwsoft-foldergallery - image gallery for SilverStripe 3


Go to End
Reply


86 Posts   11940 Views

Avatar
cwsoft

Community Member, 57 Posts

5 October 2013 at 11:40pm

Edited: 05/10/2013 11:41pm

Hello,

just for information. With the stable release of SilverStripe 3.1.0, I switched my cwsoft-foldergallery master branch from 3.0.x to 3.1.x. So downloads from master now allways points to the SilverStripe 3.1.x branch.

PLEASE NOTE:
There exists versions of the cwsoft-foldergallery module for all main SilverStripe branches: [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/tree/2.4.x]2.4.x[/url], [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/tree/3.0.x]3.0.x[/url] and [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery]3.1.x[/url]

Cheers

Avatar
Riposte

Community Member, 10 Posts

13 October 2013 at 9:57am

@CWSOFT: Sorry for the delay in testing this and getting back to you - been distracted with other things.

I updated everything to Silverstripe 3.1.1
and I have "cwsoft/silverstripe-cwsoft-foldergallery": "dev-master" in my composer.json
So, theoretically I should be on the correct and latest version of cwsoft-foldergallery?

Unfortunately the problem still exists unless I have <script type="text/javascript" src="../mysite/javascript/script.js"></script>
right at the bottom of my page.ss file.

My template started life on version 2.3.1 - is there something in particular I should look for?

Avatar
cwsoft

Community Member, 57 Posts

14 October 2013 at 8:12pm

Edited: 14/10/2013 8:19pm

@Riposte: Thanks for writing back.

>So, theoretically I should be on the correct and latest version of cwsoft-foldergallery?
Have not tried to install cwsoft-foldergallery with Composer for SS 3.1.1 recently, so I can't comment on that. But yes, in principal it should work. To be sure, you could [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/archive/master.zip]directly download[/url] from the master branch and install this version.

>Unfortunately the problem still exists unless script.js is included at the bottom
The only thing in script.js I can think of affecting the cwsoft-gallery is the first line:

jQuery.noConflict();

Could you please try the following:
a) comment out the line above in file: /themes/simple/javascript/script.js
just add // at the beginning of this line --> this should break the Slideshow etc.

b) add code line above to the beginning of file: /cwsoft-foldergallery/javascript/cwsoft-foldergallery.js
--> does this restore the functionallity ?

c) if b) works, remove the comments made in step a) and check if things still work

d) if non of the above work, I would need to have a look at your template to check whats going wrong
--> would you mind sending me your template via Email (see GitHub account for details) ?

Anyway, thanks for your patience.

Best regards
cwsoft

Avatar
AndiC

Community Member, 4 Posts

25 November 2013 at 12:36am

Hi

I have downloaded and installed cwsoft-foldergallery manually to my SS 3.1.1 site - and all works correctly. I like the look and feel, and have integrated it into my theme with ease following the instructions.

Except, it takes an inordinate amount of time to create a sub-gallery page - of the order 6 or 7 minutes. I have a gallery with currently 24 sub-galleries in it.

Server is Ubuntu, high-end virtualised, and is not stressed at all. Apache using about 5% CPU, MYSQL about 2% during page creation.

Publishing the page takes a little while but not too bad.

Any thoughts?

Andi

Avatar
cwsoft

Community Member, 57 Posts

25 November 2013 at 4:29am

@AndiC: Haven't tested my module on SilverStripe 3.1.1 yet, as I had some issues with latest SilverStripe and PHP 5.4 recently.
Are there lot's of images in your subfolders? Which version are you using (PHP, gallery module). Will do some checks after my vacation.

Cheers

Avatar
AndiC

Community Member, 4 Posts

25 November 2013 at 7:30am

Hi @cwsoft.

Thanks for your prompt reply

PHP is 5.5.3-1ubuntu2

foldergallery is 2.7.1 (according to _config.php)

I have now managed to create about 30 subfolders, each having a varying number of images - some have just 1, others over300

But it isn't publishing the configured subfolders that is the issue (although a tad slow, I can live with that), it is creating a blank empty subfolder that takes the time - at that stage it has no images associated with it.

It does however seem that the creation process has gotten slower the more images I have in total

Structure looks something like

FolderGallery
....FolderGallery
....FolderGallery
....FolderGallery
........FolderGallery
........FolderGallery
........FolderGallery
........FolderGallery
........FolderGallery

..............ditto......

........FolderGallery
....FolderGallery
....FolderGallery

Enjoy the vacation, no rush

Andi

Avatar
oldwrinkly

Community Member, 34 Posts

2 January 2014 at 2:09am

Edited: 02/01/2014 2:13am

Hi
and a happy new year to you
I have been trying to install the latest version of cwssoft on a fresh install of 3.12
with latest gridfieldbulktools and sortablegridfield

but cannot get the albums page or album drop down in the site tree to show, so only text for content shows on draft preview.
assets folder has read / write permissions, cws folder is in assets, albums and photos have been installed in the files section of the cms.
I have deleted,dev/build and downloaded again and re-installed it all but with the same results.

No albums / gallery showing either in the cms or on the draft preview

PS: I have since tried 2 other gallery modules neither of which worked with 3.12, I will put a general post out as well in case this is a 3.12 problem or my install error, although everything else is working ok.

any ideas?

Regards
Mike

Avatar
cwsoft

Community Member, 57 Posts

3 January 2014 at 10:38am

Edited: 03/01/2014 10:39am

@oldwrinkly: My last sucessfull test was on SS 3.1.1 using the standard theme simple.
As there where some issues with custom themes reported in the past, can you test my module on your SS 3.1.2 installation using the standard simple theme shipped with SilverStripe and report back in this thread?

Will check out latest SilverStripe release after my new year break.

Cheers cwsoft

Go to Top