Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Gallery module: List of child galleries

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1070 Views
  • cvk
    Avatar
    Community Member
    1 Post

    Gallery module: List of child galleries Link to this post

    I want to embed a simple gallery in my site. Installing the gallery module and adding a few images was delightfully easy.

    As my galleries should have subgalleries, I created the following Layout/GalleryPage.ss:

    <div id="Content" class="typography">
    <% include Breadcrumbs %>
    <% include GalleryPageContent %>
    <ul>
    <% control Children %>
    <li>
    <a href="$Link" title="View gallery &quot;{$Title}&quot;">$Title</a>
    </li>
    <% end_control %>
    </ul>

    Now I want to add a small preview image (e.g. the gallery's first image) to each entry, similar to the tutorial's staff page, but haven't found out yet how to achieve this. Any ideas?

    I'm new to SilverStripe, so please bear with me ;)

    1070 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.