Posted by wipeout_dude on February 23, 2012 at 5:24pm
Hi,
I have a page manager panels layout that includes a mini-panel and in that mini-panel there is a custom content pane.. I am trying to export it all to a feature and I can export the page layout and the mini-panel but I can't see where to export the custom content pane..
Anyone have any ideas?
Comments
I think custom content
I think custom content exports with the panels layout. Check the exported text - should have a copy of your content text in there.
It is exported within ...pages_default.inc
When you export the pane, the data will reside within the first Panels page where it was used (likely where you created it using the "New custom content" link within the Panels UI). The only difference in your code export is that a 'name' attribute will be appended. This is known as the machine name, and it allows for the data to be exported and shared within CTools.
To reuse custom content panes, choose the "Make this content reusable" option when you create the pane -- the machine name you specify will be attached, and the content can be shared across your Panels.
Edit: one more note -- your pane cannot be edited within Page Manager UI once you make custom content panes reusable. You must navigate to http://example.com/admin/structure/ctools-content which is the admin section for all reusable content panes.
Edit #2: I spoke too soon. This functionality is buggy, and will not export properly. Read more at the following issues:
Any update?
I'm wondering if anyone has successfully tried this more recently? http://drupal.org/node/1079440 now seems to have been fixed last year, but if I try creating a reusable panel pane, it does not get exported as part of the pages_default.inc file.