Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedWhoops. 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.
Comment #2
sociotech CreditAttribution: sociotech commentedDid this get in yet, or is there a recommended alternative approach? Sorry if I missed it.
Thanks :)
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedI just checked in panels_get_current_page_display()