This might be a bit late but I think your problems are caused by the fact that the page is rendered with a different template depending upon how many albums you have. Because:
this function in ImageGalleryPage.php
public function SingleAlbumView()
{
if($this->Albums()->Count() == 1) {
$this->current_album = $this->Albums()->First();
return true;
}
return false;
}
Detects if you only have one album and then the following function in the controller:
public function index()
{
if($this->SingleAlbumView())
return $this->renderWith(array($this->getModelClass().'_album','Page'));
return $this->renderWith(array('ImageGalleryPage','Page'));
}
renders the initial page with ImageGalleryPage_album.ss
so if you are putting $content or $GalleryLayout in ImageGalleryPage.ss and you only have one album you won't see anything as it is rendered by the _album.ss template. This looks like it is the case in the template that DanStephenson posted.
correct me if i'm wrong?
b
b