Jump to:

7940 Posts in 1543 Topics by 946 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: 794 Views
  • Evan
    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
    4085 Posts

    Re: Varying cover image sizes Link to this post

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

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.