Sidebar on the right

fmmcmillan

Joined: 2009-06-16
Posts: 18
Posted: Fri, 2010-04-16 09:03

I know there is a post on here somewhere on how to move the sidebar to the right side in theme.tpl but i cant find it. Help

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-04-16 15:56

It's going to heavily depend on what theme you're using.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fmmcmillan

Joined: 2009-06-16
Posts: 18
Posted: Fri, 2010-04-16 17:03

Matrix. Sorry i should have mentioned that...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-04-16 20:06

Matrix is all table based, so it's going to be a matter of moving some cells around.

You'll need to edit photo.tpl and album.tpl instead of theme.tpl or any css... Follow this when editing templates:
http://codex.gallery2.org/Gallery2:Editing_Templates

It's actually an easy edit. Move this (which is located near the top of each file:

    {if !empty($theme.params.sidebarBlocks)}
    <td id="gsSidebarCol">
      {g->theme include="sidebar.tpl"}
    </td>
    {/if}

To near the bottom of each file so it looks like this (new stuff in bold)

      </div>
    </td>
    {if !empty($theme.params.sidebarBlocks)}
    <td id="gsSidebarCol">
      {g->theme include="sidebar.tpl"}
    </td>
    {/if}
  </tr>
</table>

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fmmcmillan

Joined: 2009-06-16
Posts: 18
Posted: Fri, 2010-04-16 22:28

tyvm you have been very helpful...

Fred