Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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;
}
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:
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.
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:
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.