Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

Gallery issues - please help before i pull all my hair out.


Reply


5 Posts   1593 Views

Avatar
boogieg

Community Member, 23 Posts

27 August 2008 at 7:59pm

Edited: 27/08/2008 8:15pm

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!

Avatar
Fuzz10

Community Member, 787 Posts

27 August 2008 at 11:25pm

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.

Avatar
stooni

Community Member, 89 Posts

28 August 2008 at 3:33am

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

Avatar
boogieg

Community Member, 23 Posts

28 August 2008 at 4:20am

Edited: 28/08/2008 4:26am

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!

Avatar
stooni

Community Member, 89 Posts

28 August 2008 at 6:19am

Edited: 28/08/2008 7:30am

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