1

I would like to export a Panels Everywhere site template to code. I know you get some configuration code when you select the export tab, but I'm not sure how you turn that into a module that will generate the template with it's variants and layout on another environment.

  • I found out you need to enable and use Chaos Tools - Bulk Export (bulk_export) module. It will generate three files: example.info example.module example.views_default.inc – spademagic Oct 1 '15 at 23:15
0

You can try features module.

The features module enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together satisfy a certain use-case.

Features provides a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature module is like any other Drupal module except that it declares its components (e.g. views, contexts, CCK fields, etc.) in its .info file so that it can be checked, updated, or reverted programmatically.

the features module converts every entity (views, content types, ...) in to a module and it can easily be installed and modified every where.

  • I don't think you can export a panels everywhere site template to features. I think I might be able to do it with the ctools bulk export tool. – spademagic Jul 7 '15 at 18:11
  • The drupal.org/node/580026 says you can – M a m a D Jul 7 '15 at 18:13
  • I think they are saying you can export panels or panel pages to features. Panels Everywhere site templates seems to be different. I do see panel pages available in Features, but not the Panels Everywhere template. – spademagic Jul 7 '15 at 18:20
0

Actually there are 2 ways to do that.

  1. You can featurize your panel and realted plugins(mini panels, snippets, custom content etc.) into it using features module. By this method you will get a module which you can place anywhere in your other instance and you will get all the things which you have added to it. More specifically when you create a new feature there are configuration on RHS (page manager, minipanels etc.)

  2. Direct export the panel page and other things which are in your panel page. using the export feature in your panel page itself. Click on export tab and copy the code and go to structure -> pages -> import page and paste the code there. You will have that panel page create in your another instance.

But the best practice I will recommend you should use features module on other side if you have to things quickly use the second approach.

Feature configuration to add the panel page Import panel page![][2] enter image description here

  • I think the first approach would work for a panels page, but unfortunately this case is a little different. I am trying to get a Panels Everywhere template into code which isn't quite the same as a panels page even though it will show up on the list of panel pages. The second method wouldn't get it into the code base so that wouldn't be ideal either. – spademagic Jul 7 '15 at 18:31
  • Could you please explain what you mean by "trying to get a Panels Everywhere template into code which isn't quite the same as a panels page even though it will show up on the list of panel pages."? – Ashwini Kumar Jul 7 '15 at 18:37
  • So when you use Panels Everywhere you are not creating a panel page, but instead a wrapper around the content that replaces the blocks and regions. If you try creating a Panels Everywhere template I don't think you will see it available in features like panel pages. I think I need to use the ctools bulk eporter. – spademagic Jul 7 '15 at 18:55

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.