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

Comments

merlinofchaos’s picture

Status: Active » Fixed

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

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.

Anonymous’s picture

Status: Fixed » Closed (fixed)