Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brandon Hines 15 posts 45 karma points
    Oct 06, 2013 @ 00:13
    Brandon Hines
    0

    Change Gallery Thumbnail Size

    I need to know how to change the Gallery thumbnail size.  It looks like you simply use the generated Thumbnail however I would like to change this setting on the fly.  It would be nice to include ImageGen to resize the original when generating a Gallery Browser.  It also looks like your code is wrapped into the dll.  Can you include this or allow us to change ourselves.

    Thanks

  • Brandon Hines 15 posts 45 karma points
    Oct 07, 2013 @ 20:32
    Brandon Hines
    0

    I fixed this by writing my on Razor Template for the Gallery Browser.  I did not use your macro and I added a property for Gallery Thumbnail to make it easier to select the image.  The other alternative would be to select the first child of the Gallery Object.  I opted not to do this.  Here is the code from my template:

     

     

     

    @foreach (var page in @CurrentPage.Children())

    {

    <div class="GalleryBrowserContainer">

    <div class="GalleryItem">

    <div class="GalleryThumbContainer">

    <a class="GalleryThumbLink frame" href="@page.Url">

    <span class="GalleryThumb" style="background-image: url(/[email protected](page.GetPropertyValue<string>("galleryThumbnail")).umbracoFile&width=240)" title="@page.Name">@page.Name</span>

     

    </a>

    </div>

    <div class="GalleryTitleContainer">

    <a class="GalleryTitleLink" href="@page.Url">

    @page.Name

    </a>

    </div>

    </div>

    </div>

    }

  • Brandon Hines 15 posts 45 karma points
    Oct 07, 2013 @ 20:38
    Brandon Hines
    0

     

     

    Here is a screenshot of the result:

     

Please Sign in or register to post replies

Write your reply to:

Draft