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.


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

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

Image Gallery Extension: Testers Needed


59 Posts   25709 Views


25 November 2008 at 10:50am (Last edited: 25 November 2008 10:57am), Community Member, 40 Posts

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.



25 November 2008 at 11:08am 4085 Posts

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 ) {

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 the way you want it. Or you can just make your own and put it in mysite/templates/Layout


25 November 2008 at 12:06pm Community Member, 40 Posts

that works fine..

if you want to see it in action then select image gallery it's there..



26 November 2008 at 6:19pm Community Member, 40 Posts

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

-> Italy
-> USA
--> July 2008

etc.. hopefully you get the idea.



27 November 2008 at 9:45am Community Member, 30 Posts

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?


27 November 2008 at 9:54am 4085 Posts

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:


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.


28 November 2008 at 2:19am (Last edited: 28 November 2008 2:20am), Community Member, 14 Posts

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


28 November 2008 at 5:16am 4085 Posts

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!