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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Varying cover image sizes


Go to End


2 Posts   1491 Views

Avatar
Evan

Community Member, 2 Posts

27 July 2009 at 4:45pm

Hi, I've got what I imagine is a simple problem with Image Gallery, but I can't quite figure it out. Basically, I want a different sized (from the defaults) album cover image to appear on a particular page. I tried extending ImageGalleryAlbum and adding the following method:

function listAlbumCover() {
	return $this->CoverImage()->CroppedImage(85, 85);
}

However I couldn't get it to work and I feel like it might be overkill anyway? Any help would be appreciated.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

28 July 2009 at 3:47am

It's on the Configuration tab. Cover Image Width/Height.