Closed (fixed)
Project:
Panels
Version:
6.x-3.x-dev
Component:
API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2009 at 10:04 UTC
Updated:
27 Jan 2010 at 20:50 UTC
Its a fact, that some system path f.ex. /forum will not work together with panels.
Be cause I have defined several custom styles in panels, I would like to theme blocks and nodes on non-panel pages with the styles of the panels module.
Until now, I did not found a good solution how to create panels programmatically.
I was able to emulate panels by executing the following code in template.php
//CSS for rounded corners
panels_load_include('rounded_corners','plugins/styles/corners/' );
$display = new stdClass();
panels_rounded_corners2_css($display);
//reload css files
$vars['css'] = drupal_add_css();
But this is a hack and not a valuable solution.
This code includes the necessary css styles but I'm sure, there must be an easy way to reuse panels on normal system pages.
Any hints?
Comments
Comment #1
ayalon commentedI forgot one part:
In the template code I use this code to render the page content:
Comment #2
merlinofchaos commentedPanels Everywhere module now does this.