Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Gallery issues - please help before i pull all my hair out.

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: 1540 Views
  • boogieg
    Avatar
    Community Member
    23 Posts

    Gallery issues - please help before i pull all my hair out. Link to this post

    an issue with the gallery I've set up:

    I've created a normal page with 3 child pages which are all Gallery Pages. For some reason, the submenu is showing on each of those child pages. Any ideas? http://www.djmedi4.com/gallery/ looks fine, but click on any of the links on the right and you'll see what I'm talking about. Maybe there's a smarter way for me to structure the main page (/gallery/) and sub-pages (/promo-shots/, /candids/, /performance/)?

    any advice? thanks!

  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: Gallery issues - please help before i pull all my hair out. Link to this post

    The gallery-page probably extends your Page type class . So have a look at your template-structure to make sure you have divided the templates up correctly.

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Gallery issues - please help before i pull all my hair out. Link to this post

    The first Template you call is the \themes\yourtheme\templates\ and the template in gallery he ist in \gallery\templates\Layout , you must in the second delete teh control sidebar!!!

    ----------------Stooni

  • boogieg
    Avatar
    Community Member
    23 Posts

    Re: Gallery issues - please help before i pull all my hair out. Link to this post

    Thank you, Stooni! That was it - solved the problem, but created another minor glitch that I'd love to fix.

    My divider graphic beneath my page title (that distressed horizontal div bar) is stretched all the way across & merges with the divider graphic under "menu" on the right. (see http://www.djmedi4.com/promo-shots/ ) but on the other pages on my site, there's a break between the two (see http://www.djmedi4.com/mp3-downloads/ )

    I definitely prefer that all the pages are uniform, and would very much like for the gallery pages to also display that break between the two. Can't for the life of me figure out where in the gallery template this occurs.

    The code for the gallery layout template is:
    <div class="typography">
       <% if Menu(2) %>
          
          <div id="Content">
       <% end_if %>
             
       <% if Level(2) %>
           <% include BreadCrumbs %>
       <% end_if %>
       
          <h2>$Title</h2>
          
          <% include GalleryPageContent %>
          
          $Content
          $Form
          $PageComments
       
       <% if Menu(2) %>
          </div>
       <% end_if %>
    </div>

    Can anyone tell me what I need to change so the gallery pages match the rest of the site?
    Thanks!

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Gallery issues - please help before i pull all my hair out. Link to this post

    The simplest way is you take

    this code    from   yourheme\templates\Layout\Page.ss

    copy these in the file gallery\templates\Layout\GalleryPage.ss and put in them over
       $Content
    this Control --- <% include GalleryPageContent %>

    sample---
    <% include GalleryPageContent %>

    $Content
    ....

    so you have the same design file i think in the gallery templates are some div's that not important

    ---- Stooni

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