Closed (fixed)
Project:
Panels
Version:
6.x-3.0-rc1
Component:
Mini panels
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Aug 2009 at 08:16 UTC
Updated:
13 Jul 2012 at 01:41 UTC
Hi everybody,
Do you know how it is possible to render a mini-panel (with access rules specified in the mini-panel UI for example) directly in my module code?
I would like to run something like : mini_panel_render_content($mini-panel_id).
Thank you for your help!
Comments
Comment #1
merlinofchaos commentedtry $output = panels_mini_block('view', 'mini-panel-name');
It'll render like a block, so it'll return an array with 'subject' and 'content' like any block. You can run it through theme('block') if you want full block output, or just use the content.
Comment #3
Vote_Sizing_Steve commentedAny suggestions to do the same in drupal 7?