Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » image gallery problem with css and gallery_ui

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 232 Views
  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    image gallery problem with css and gallery_ui Link to this post

    I've got the tractorcow/silverstripe-imagegallery module installed on a website I'm building with SS3.1, only problem is when I look at the gallery pages they're not linking in the CSS files for the module (so all of the gallery data is displaying as unstyled) and the gallery_ui popup things aren't working (so when you click on an image thumbnail it just opens up the image in a blank window ... which seems as if it might also be an issue with the CSS file not being linked into the page as well as the JS).
    No error messages or anything, the site just seems to be ignoring those CSS files
    I can't for the life of me figure out why, everything looks like it's as it should be ... but it's been a while since I've used silverstripe and it's all changed, so maybe I'm not even looking in the right place ...
    Can anyone please help or point me in the right direction?

  • thomas.paulson
    Avatar
    Community Member
    67 Posts

    Re: image gallery problem with css and gallery_ui Link to this post

    try replacing

    Requirements::themedCSS('ImageGallery');

    with

    Requirements::css( 'ImageGallery/css/ImageGallery.css', 'screen,projection' );

    in ImageGallery / code / ImageGalleryPage.php

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: image gallery problem with css and gallery_ui Link to this post

    Thanks for the reply.
    Changing that line didn't work though.

  • thomas.paulson
    Avatar
    Community Member
    67 Posts

    Re: image gallery problem with css and gallery_ui Link to this post

    it does work, though there are some minor problem with css.

    I have tested in localhost.

    Please check the module name is ImageGallery. If not try with module as below

    Requirements::css( ' - module name - /css/ImageGallery.css', 'screen,projection' );

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: image gallery problem with css and gallery_ui Link to this post

    Oh, right! I don't know how I missed that .... changed it to:
    Requirements::css( ' ImageGallery-3.1/css/ImageGallery.css', 'screen,projection' );
    And that seems to have for worked kinda .. though now it's not loading the images in the galleries, just show the loading gif

  • thomas.paulson
    Avatar
    Community Member
    67 Posts

    Re: image gallery problem with css and gallery_ui Link to this post

    try disable css in ImageGallery/css/ImageGallery.css

    .gallery-layout {
    /* background: url("../images/ajax-loader-lg.gif") no-repeat scroll center center transparent; */
    }

    .gallery-layout li a {
    /* visibility: hidden; */
    }

    232 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.