Closed (fixed)
Project:
Panels
Version:
6.x-3.9
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 19:09 UTC
Updated:
18 Dec 2011 at 11:40 UTC
Is there a way to target an individual panel or panel region on the panel page from mycustom.module
targeting the url alone works fine but I cant seem to target an individual panel-pane or region or panel-machine-name via php if
if (substr(request_uri(), 0, 16) == '/search_content/' && panel_region == top) {
// then set a search result parameter
$params['rows'] = 30;
}
I have used dsm(page_manager_get_current_page()) but it needs to be run from the panel page and does not return anything when run from mycustom.module
any help would be much appreciated.
Comments
Comment #1
Letharion commentedCan't answer that, so I'm assigning the issue to merlinofchaos, and we'll hope that he finds the time to take a look at it :)
Comment #2
merlinofchaos commentedMaybe you want hook_panels_pane_content_alter() ?
Comment #3
Letharion commented