Diving into Panels 3, kudos to the panels team, amazing stuff!

I have a case where i want to use a preprocess function to determine if the user in on a panels page or a regular site page, and consequently have different page.tpls

In the past I've used panels_page_get_current() to accomplish this.

What's the equivalent function in Panels 3, I've poked around the delegator module plugins, but nothing jumped out at me, that said, I'm still wrapping my head around the changes in how panel pages are managed.

Any suggestions/advice would be greatly appreciated.

Thanks

Comments

merlinofchaos’s picture

Whoops. I am afraid I left that out. It's going to be a little harder, too, because what a page ultimately renders doesn't even have to be a panel, it's just that right now panel is the only handler that exists. I'll have to figure out what to do about this one.

sociotech’s picture

Did this get in yet, or is there a recommended alternative approach? Sorry if I missed it.

Thanks :)

merlinofchaos’s picture

Status: Active » Fixed

I just checked in panels_get_current_page_display()

Status: Fixed » Closed (fixed)

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