Getting Started with Panopoly Development

In order to start developing with Panopoly, you need to create a custom Drupal module (i.e. panopoly_example.module in which you put your custom code. Once you create a Drupal module, you need to make it aware of Chaos Tools Plugins by adding the following hook:

/**
 * Implementation of hook_ctools_plugin_directory()
 */
function panopoly_search_ctools_plugin_directory($module, $plugin) {
  return 'plugins/' . $plugin;
}

Creating a Basic Content Plugin

If you want to create a basic content plugin which displays custom HTML and will can be placed using Panopoly, you will first need to create a custom module and set it up to use Panel's hooks. Afterwards, you create a plugin file located inside your module directory at plugins/content_types/plugin_name.inc that looks like this:

Video tutorials on Panopoly

The video tutorials below were made for a specific website built on Panopoly, but the steps to perform the actions should be the same on most sites built on Panopoly.

Creating a Basic Style Plugin

If you want to create a basic style plugin which applies styling to items placed using Panopoly, you will first need to create a custom module and set it up to use Panel's hooks. Afterwards, you create a plugin file located inside your module directory at plugins/styles/style_name.inc that looks like this:

Running Panopoly's Behat tests locally (and adding your own!)

Behat is a tool for running automated behavioral tests on a website. You provide Behat with short scenarios for using the website, and it essentially opens a web browser and executes each of the steps (ie. click this link, fill in this field, press submit, etc) to make sure the website works as expected.

Panopoly (panopoly_test) includes a suite of Behat tests to make sure Panopoly's features are working as expected. Everytime we commit a change to Panopoly, the tests are run (on Travis-CI), so we can be sure that we haven't broken any features.

Pages

Subscribe with RSS Subscribe to RSS - Panopoly