Re-arrange Sidebar

EmmetMoore

Joined: 2009-07-24
Posts: 11
Posted: Fri, 2009-07-24 12:42

Hi,

I'm trying to re-arrange the sidebar slightly - trying to move the exif block under the info block.

I'm not completely useless, but I can't figure out where the code is that dertermines the block order. I've found how to move a block from top, or bottom sections of the sidebar - so I can move it up, just can figure out how to place it in the specific order that I want.

Could anyone point me in the right direction?

Many thanks,

Emmet Moore

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-24 15:53

Take a look at the page's source. You'll see that the blocks are named divs, like gTag or gRss

So you should be able to position them how you like with CSS. Also, there is a really cool UI being worked on to manage blocks and their positions so that will help. But I just dug around in the code and I'm not sure exactly but it might look like you'd need to dig around in /gallery3/modules/gallery/libraries/Theme_View.php

I think looking at how stuff is structured, the preferred way is probably going to be with CSS.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
EmmetMoore

Joined: 2009-07-24
Posts: 11
Posted: Sat, 2009-07-25 11:02

hmmm..turns out I might be useless, after all!!
Couldn't manage to arrange the divs using CSS.

As a last resort I placed the code for the exif block into the the bottom of the info block. It achieves what I wanted, just not in the most efficient way... :-(

Thanks nivekiam, for the assistance, appreciate your time.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2009-07-30 00:45

We'll be makinga UI for this soon: http://sourceforge.net/apps/trac/gallery/ticket/451
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
EmmetMoore

Joined: 2009-07-24
Posts: 11
Posted: Sat, 2009-08-01 06:29

Thanks for the heads-up bharat!

I'll be keeping an eye out for it!!