I'm working on a project using panelizer where whenever people are editing panel displays on the site, it should really use the admin theme. Works fine under page manager since all those paths are admin/* but when editing the panels display on panelized nodes, we're still using the default site theme, even when 'node_admin_theme' is set.

In D7, this is trivial thanks to hook_admin_paths() but it's a little bit more of a PITA in D6.

Thoughts?
-Derek

Comments

dww’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.64 KB
new531 bytes

Heh, whoops. I was looking at 7.x-1.x not 7.x-2.x. Earl already fixed this in 7.x-2.x via 0f4b69139. ;)

So, here are backports for 7.x-1.x (dunno if anyone cares -- the branch is now marked as unsupported now that 7.x-2.0 is out) and 6.x-1.x (I care).

Any objections to at least the D6 backport? (Beyond how objectionable the D6 API makes this, of course). ;)

Thanks,
-Derek

dww’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Fixed

From IRC:

[12:59am] merlinofchaos: 7.x-1.0 branch should be totally removed and ignored.
[01:00am] dww: yeah, fair enough.
[01:00am] merlinofchaos: dww: I forget. Does D6 let you do the node edit form in the admin theme?
[01:00am] dww: yes.
[01:00am] dww: that's what that setting is about.
[01:00am] dww: it's just hard-coded in system_init()
[01:00am] merlinofchaos: Oh I see.
[01:00am] merlinofchaos: Then sure, no objection.
[01:00am] dww: great ;)

Pushed 7fdc701 to 6.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.