insert panels to theme

toma - November 29, 2006 - 09:05
Project:Panels
Version:4.7.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:toma
Status:closed
Description

Hi

I want to insert panels to theme, for example i have a panel name sport

in my theme i just want to replace panel to the content code in my sport.tpl.php

<?php print $content; ?>

to something like

<?php print $sport; ?> or what ever code php to call my panel name

#1

merlinofchaos - November 29, 2006 - 17:45
Status:active» fixed

If you get the 'did' (the misnamed panel id from the database) You can do:

<?php
print panels_panels_page($did);
?>

That'll print an entire panel.

You can also construct panels manually using the function panels_print_layout() -- you'll need to look in panels.module to see how to use that.

I'll document this stuff better after Panels 2, which'll be a lot better for what you want to do.

#2

Anonymous - December 13, 2006 - 18:00
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.