How to keep admin backend interface as default theme when using a custom theme?

skunker

Joined: 2005-02-04
Posts: 304
Posted: Wed, 2009-08-19 21:58

Does anyone remember how to setup G2 so it displays the default admin backend interface instead of using a custom theme's interface for the admin backend? My custom theme does not work well with the admin backend so I'd like to keep that as the admin default.

I hope this makes sense. Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-08-19 22:46

Here's what I do:

Site Admin > Themes set the default theme for Gallery to Matrix

Then on the main page of your gallery, click Edit Album > Theme (tab) and select a custom theme for that album and select that theme to be applied to all sub-albums (if you desire)

Makes the back end easy to use and the front end nice looking.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
skunker

Joined: 2005-02-04
Posts: 304
Posted: Thu, 2009-08-20 00:02

Seemed to work good, thanks. The only issue is that when editing individual photos, I'm still stuck with the custom theme interface.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-08-20 15:22

Ah, yeah. Forgot about that.... I think there's something that can be done to check if it's an admin page or not. I'll need to dig into that

Here we go:
Dave has a post here:
http://gallery.menalto.com/node/89433

Looks like there's good info here:
http://gallery.menalto.com/node/43271

And even more here:
http://www.google.com/search?domains=gallery.menalto.com&sitesearch=gallery.menalto.com&q=admintemplate
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
skunker

Joined: 2005-02-04
Posts: 304
Posted: Fri, 2009-08-21 15:15

Where would I put that code mentioned in this thread: http://gallery.menalto.com/node/43271

Specifically:

{if $theme.adminTemplate == 'modules/core/templates/UserAdmin.tpl'}
{ g->theme include="UserAdmin.tpl" }
{elseif $theme.adminTemplate == 'modules/core/templates/ItemAdmin.tpl'}
{ g->theme include="ItemAdmin.tpl" }
{elseif $theme.adminTemplate == 'modules/core/templates/SiteAdmin.tpl'}
{ g->theme include="SiteAdmin.tpl" }
{else}
{include file="gallery:`$theme.adminTemplate`" l10Domain=$theme.adminL10Domain}
{/if}

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-08-21 15:33

Not sure, either theme.tpl or I think actually in admin.tpl
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here