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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

cwsoft-foldergallery - image gallery for SilverStripe 3


Go to End


87 Posts   30020 Views

Avatar
Cactus

Community Member, 1 Post

12 July 2013 at 4:38pm

I'm having issues getting the plugin working. I followed the instructions but nothing happens (no new page type). Did I do something wrong?

System:
php5.3.2-1 (ubuntu)
Silverstripe 3.0.5
Gallery script master from GitHub, 12 July 2013 (can't find version no.)

Installation:
1) Unzipped Github zip file on webserver root (Silverstripe install dir)
2) renamed it to cwsoft-foldergallery (also tried without renaming it)
3) gave user rights to www-data on unzipped folder recursively
4) called page with /dev/build?flush=all
The output doesn't indicate any additions to the database:

Building database TEST using MySQL 5.1.69-0ubuntu0.10.04.1

Creating database tables
Email_BounceRecord
File
Folder
Image
Image_Cached
Group
LoginAttempt
Member
MemberPassword
Permission
PermissionRole
PermissionRoleCode
SiteConfig
SiteTree
Page
ErrorPage
RedirectorPage
VirtualPage

Creating database records
Email_BounceRecord
File
Folder
Image
Image_Cached
Group
LoginAttempt
Member
MemberPassword
Permission
PermissionRole
PermissionRoleCode
SiteConfig
SiteTree
Page
ErrorPage
RedirectorPage
VirtualPage

Database build completed!

5) opened backend with /admin/?flush=all
6) When creating a new page there's no page type 'Foldergallery'

I've installed other plugins the same way without problems (none are installed in this system at the moment).

Avatar
cwsoft

Community Member, 57 Posts

13 July 2013 at 8:25pm

Edited: 13/07/2013 8:30pm

@Cactus: I guess your cwsoft-foldergallery folder structure is not correct.

Can you try again following these steps:
- download latest cwsoft-foldergallery version for the SS 3.0.x. branch
- unzip the archive locally on your computer
- go into folder "silverstripe-cwsoft-foldergallery-master" of the extracted archive
- copy the entire subfolder "cwsoft-foldergallery" into your SilverStripe root folder
- rebuild your database (yourdomain.com/dev/build?flush=all)

Then follow the steps described in the README of the module.

Hope this helps.

Cheers cwsoft

Avatar
Nuros

Community Member, 1 Post

22 August 2013 at 1:10am

Hello, i got a little Problem with this module.
Sorry for my bad English, i´m from germany.

System:
Firefox
php 5.4.16
Silverstripe 3.0.5
Gallery From Masterbranch(SS3.X)

I installed the module and in backend i can crate the pagetype Gallery
For the first time everything is ok, i klick on create, the pop up message "page created" appears
but second page and following don´t work as expected.

When i try to creat them, nothing happens. Only when i relog cms, then i can see the created gallery pages.
when i try to publish them, nothing happens :/

i tried to rebuild my database, to refresh the page and to publish them a lot of times, it won´t work

Avatar
cwsoft

Community Member, 57 Posts

25 August 2013 at 11:24pm

Edited: 25/08/2013 11:27pm

@Nuros.

Just downloaded latest SS 3.0.5 cwsoft-foldergallery module from my GitHub master branch and installed it on a clean SS 3.0.5 system with the standard Simple template.

I couldn't find any bug or regression on my local test system (XAMPP with PHP 5.4.7).
Creating single and nested gallery pages work without any issues here. Could you provide me a link to your website (if public) so I can check out whats going wrong on your site?

You can send me an Email (see my GitHub account) in German if you feel more comfortable :-)

Regards cwsoft

Avatar
Riposte

Community Member, 10 Posts

7 September 2013 at 5:57pm

Edited: 07/09/2013 6:00pm

Hi cwsoft
Thanks for hard work on this module, its great. Got it working on 3.1 no problems.
A quick question though - when an actual image from within an album is opened there is no close button, I have to back page in the browser to go back to the album. Is this expected behavior or have I missed something?

Also, noted mention somewhere in one of the files a hyperlink to start a slideshow - this isnt appearing on my setup either.

One more thing - the album graphic with the ring binder look - is that resizable?
I know I said 'no problems' above ... sounds like I might have one or two.
Any advice?

Avatar
cwsoft

Community Member, 57 Posts

7 September 2013 at 10:17pm

Edited: 08/09/2013 7:35am

@riposte: thanks for your feedback.

Close button or link should be available in bottom bar (next, prev, title ...) of the Colorbox image window. Close button should be visible by default. If not try to add closeButton: true, in javascript/cwsoft-foldergallery.js.

If the link to start the slideshow does not show up in your install, there is most likely an issue with jquery in your template. To proof this, switch to the default simple theme and check if the links appear. A fix was posted in this thread by another forum member.

The album preview image can be changed to your liking. Width and height can be adapted in _config/settings.yml and css/cwsoft-foldergallery.css accordingly. Remember to clean cache and to recreate thumbnails afterwards to reflect the changes.

Cheers

Avatar
Riposte

Community Member, 10 Posts

14 September 2013 at 12:49pm

Edited: 14/09/2013 1:13pm

Hi cwsoft
I am still having problems - with javascript I think - no Colorbox Close button or navigation stuff is visible.
The only error I get is:
TypeError: $(...).colorbox is not a function in cwsoft-foldergallery.js?m=1378603073:53

View page source shows all of the required CSS and js files from cwsFolderGalleryPage_Controller in the <HEAD> area.

Tried changing to simple theme as you suggested and it works perfectly - where to start looking in my own theme?

**Hold the phone!
Putting <script type="text/javascript" src="../mysite/javascript/script.js"></script>
right at the bottom of my page.ss file worked - I had tried putting it in the header like this:
<% require javascript(mysite/javascript/script.js) %> but that had no effect.

Looks like it is Solved ..

Avatar
cwsoft

Community Member, 57 Posts

16 September 2013 at 8:52pm

Edited: 16/09/2013 8:52pm

@Riposte: Thanks for your response.

I added a fix for the possible jQuery noconflict issues with some user templates. This allows to use the cwsoft-foldergallery without adding the line mysite/javascript/script.js to your template code.

Would be great if you could test the updated version with your specific template (remember to remove the line to script.js) and report if the fix solved the issue.

Best regards
cwsoft