Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » The new Gallery Module

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

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

Page: 1 2 3 4
Go to End
Author Topic: 21011 Views
  • Hani
    Avatar
    12 Posts

    Re: The new Gallery Module Link to this post

    I'm so excited! This is going to be an amazing module when all is said and done. =)

    To note: I extended FileRepository to create an "Audio Gallery" page that displays a list of audio files (specifically, MP3s) from an asset folder. It also gives a flash audio player button next to each.

    The flash button I used is from Wimpy Player.

    Direct page: http://www.wimpyplayer.com/products/wimpy_button.html

    Thanks to your module, this was really easy to set up!

  • Matt
    Avatar
    Core Development Team
    84 Posts

    Re: The new Gallery Module Link to this post

    Yeah, Wimpy is really cool. Nice work

  • Ajm
    Avatar
    3 Posts

    Re: The new Gallery Module Link to this post

    Hi,

    I'm new to SilverStripe and so far think it is the best and easiest i've used.

    Could someone please give me an example of a GalleryPage.ss file or
    where I should place the <% include GalleryPageContent %> in the Page.ss file.

    The only place I can seem to get it to work is just before the include for the footer.

    Regards

    Andy

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: The new Gallery Module Link to this post

    If you are using the BlackCandy theme you can place <% include GalleryPageContent %> anywhere between lines 12-16 in the mysite/Layout/Page.ss file. This is what my one looks like..

    <div class="typography">
       <% if Menu(2) %>
          <% include SideBar %>
          <div id="Content">
       <% end_if %>
             
       <% if Level(2) %>
           <% include BreadCrumbs %>
       <% end_if %>
       
          <h2>$Title</h2>
       
          $Content
          <% include GalleryPageContent %>
          $PageComments
       
       <% if Menu(2) %>
          </div>
       <% end_if %>
    </div>

  • Ajm
    Avatar
    3 Posts

    Re: The new Gallery Module Link to this post

    Hi willr,

    I have only just installed SilverStripe and am using the default which I thought was BlackCandy. Although looking at your Page.ss file it is different to mine.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
    DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    <head>
    <% base_tag %>
    $MetaTags
    <link rel="stylesheet" type="text/css" href="$project/css/layout
    .css" />
    <link rel="stylesheet" type="text/css" href="$project/css/typogr
    aphy.css" />

    <!--[if IE 6]>
    <style type="text/css">
    @import url($project/css/ie6.css);
    </style>
    <![endif]-->

    <!--[if IE 7]>
    <style type="text/css">
    @import url($project/css/ie7.css);
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="BgContainer">
    <div id="Container">
    <div id="Header">
    <h1>DBUnix</h1>
    <p>Software By Design</p>
    </div>

    <div id="NavHolder">
    <% if Menu(1) %>
    <% include Menu1 %>
    <% end_if %>
    </div>

    <div class="clear"><!-- --></div>

    <div id="Layout">
    $Layout
    </div>

    <div class="clear"><!-- --></div>
    </div>
    <% include Footer %>
    </div>

    </body>
    </html>

    The only place I can get it to work is before the <% include Footer %>

    Regards

    Andy

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: The new Gallery Module Link to this post

    Andy, you are looking at the right template (BlackCandy) but the wrong file. That code is for the mysite/Templates/Page.ss file. Now as you can see, the theme has $Layout which calls other sub templates which is the one you need to edit, In this case its another file called Page.ss. The one inside mysite/Templates/Layout/Page.ss is the one you need to make sure looks like the one I posted

  • Ajm
    Avatar
    3 Posts

    Re: The new Gallery Module Link to this post

    Many thanks Willr.

    Works great.

    Regards

    Andy

  • The Frenchy
    Avatar
    Core Development Team
    40 Posts

    Re: The new Gallery Module Link to this post

    The version 0.2 has been released. check this.

    21011 Views
Page: 1 2 3 4
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.