Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Varying cover image sizes

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 782 Views
  • Evan
    Avatar
    Community Member
    2 Posts

    Varying cover image sizes Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Varying cover image sizes Link to this post

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

    782 Views
Page: 1
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.