Possible to get more .tpl files for a theme?

Twilight4Ever
Twilight4Ever's picture

Joined: 2006-08-07
Posts: 130
Posted: Wed, 2008-09-17 20:48

You know how there's template files like album.tpl, photo.tpl, and sidebar.tpl? Is there any way to make a template file for the Edit Album/Photo/Admin pages? I need to condense the width of them and I wanted to rearrange the html, rather than adding css blocks and stuff (because a lot of that css is used for other parts of the site that I wouldn't want it to affect. I also want to remove some links like "Back to Photo" and "Back to Album".

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-09-18 03:51

Each page has a template file associated with it.
some pages are 'core' templates. So look in:
modules/core/templates/* like: ItemEdit.tpl or AlbumEdit.tpl
There is also core 'blocks':
modules/core/templates/blocks/*

Another way to do this is to edit a theme for your use. Assign that theme as the default theme, then use a different theme for the albums.

In G2.3 you will be able to over-ride other module(s) templates including core templates and blocks:
http://codex.gallery2.org/Gallery2:Editing_Templates -> theme override

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team