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


Reply

86 Posts   11393 Views

Avatar
Cactus

12 July 2013 at 4:38pm Community Member, 1 Post

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

13 July 2013 at 8:25pm (Last edited: 13 July 2013 8:30pm), Community Member, 57 Posts

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

Can you try again following these steps:
- download latest [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/archive/master.zip]cwsoft-foldergallery[/url] 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 [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery#readme]README[/url] of the module.

Hope this helps.

Cheers cwsoft

Avatar
Nuros

22 August 2013 at 1:10am Community Member, 1 Post

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

25 August 2013 at 11:24pm (Last edited: 25 August 2013 11:27pm), Community Member, 57 Posts

@Nuros.

Just downloaded latest [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/archive/master.zip]SS 3.0.5 cwsoft-foldergallery module[/url] 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

7 September 2013 at 5:57pm (Last edited: 7 September 2013 6:00pm), Community Member, 10 Posts

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

7 September 2013 at 10:17pm (Last edited: 8 September 2013 7:35am), Community Member, 57 Posts

@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

14 September 2013 at 12:49pm (Last edited: 14 September 2013 1:13pm), Community Member, 10 Posts

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

16 September 2013 at 8:52pm (Last edited: 16 September 2013 8:52pm), Community Member, 57 Posts

@Riposte: Thanks for your response.

I added a [url=https://github.com/cwsoft/silverstripe-cwsoft-foldergallery/tree/3.1.x]fix[/url] 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