Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Image Gallery Extension: Testers Needed

Our old forums are still available as a read-only archive.

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

Page: 1 2 3 4 5 6 7 8
Go to End
Author Topic: 25545 Views
  • itlinux
    Avatar
    Community Member
    40 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    well it looks good except that it does not behave as it should. I specify that I want only 6 pictures in a row and it does not take that option.

    also it puts the info at the bottom of the gallery I like it on the side.. Let me know which file to edit and I will.

    Never mind I modified the css file and changed the 300 to 290 and looks good now.

    Ciao,
    Remo

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Good catch, Remo!

    I've put in the fix and updated the zip file at the link. Here's the change you need:

    ImageGalleryPage.php (line 181)

    foreach( $items as $item ) {
    $cpt++;

    ImageGalleryPage.php (line 207)

    $item->ThumbnailURL = Director::baseURL().$thumbImg->Filename;
    $item->FirstItemLine = $cpt % $this->MediaPerLine == 1;
    $item->LastItemLine = $cpt % $this->MediaPerLine == 0;

    As for your display issue, it sounds CSS related. Do you have a link? You can probably just modify ImageGalleryPage.ss the way you want it. Or you can just make your own and put it in mysite/templates/Layout

  • itlinux
    Avatar
    Community Member
    40 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    that works fine..
    GREAT JOB..

    if you want to see it in action http://mattei.org then select image gallery it's there..

    Remo

  • itlinux
    Avatar
    Community Member
    40 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hi there, you may want to consider a sub-album option where you can have the following:

    Remo
    -> Italy
    -->Rome
    --->2008
    -->Milan
    -> USA
    --> July 2008

    etc.. hopefully you get the idea.

    Remo

  • one2gamble
    Avatar
    Community Member
    30 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    I got it going and created but if I try to edit the page it seems to basically time out. I can make edits and changes to every other page without issue. I havent let it go on forever to see if it produces an error but it just seems to be hanging.

    Any ideas?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Is it happening just on creating a new page or editing an existing page, or both?

    Here is what i would do..

    First, make sure you're getting copied on the error emails in your _config.php:

    Debug::send_errors_to('myemail@address.com');
    Director::set_environment_type('dev');

    If you're not getting a specific error report, then you can start hacking up the code to see where the problem is. Since getCMSFields() is the main function that runs when creating a page, strip out all the code and leave it as just

    public function getCMSFields()
    {
    $f = parent::getCMSFields();
    return $f;
    }

    See if it works then. If it does, go back to the original code and start removing form fields from the function until you find the line that's causing the problem.

    Let me know how you do.

  • Laax
    Avatar
    Community Member
    14 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hi UncleCheese,
    Just wanted to say that is a GREAT job you are doing. I think that so many of ss coders wanted the features you are building and few had the will to get to the path you are on. with the galery module, the hasmanyfilemanager and yours ss gonna rule the world lol.

    Keep it up

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Merci bien, Laax! Je voyais que tu viens de France, alors je pensais essayer ma parlage francaise.

    Langues etrangerres indterdites!
    ---

    Thanks, Laax! I saw you were from France, so I thought I'd try my French speaking.

    Stay tuned for more updates, including nested albums!

    25545 Views
Page: 1 2 3 4 5 6 7 8
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.