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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Varying cover image sizes


Reply


2 Posts   813 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, 4094 Posts

28 July 2009 at 3:47am

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