0

I have a minipanel and I have a custom template. How can I render minipanel in my custom template programatically?

0

Mini Panels are available as blocks. So you'd be rendering it in the same way you render any block programmatically in Drupal 7.

Use

$block = module_invoke('panels_mini', 'block_view', 'machine_name_of_mini_panel');
print $block['content'];
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.