Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

CTools Style Plugin: Putting It All Together

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:04
    CTools Style Plugin: Putting It All Together with Amber Motz
  • 0:07
    AMBER MOTZ: Now we have all of the code in place for both
  • 0:10
    our custom module and our style plugin.
  • 0:12
    It's time to put it all together into our pane template file.
  • 0:16
    In this lesson, we'll grab the value stored in our settings form,
  • 0:20
    and print them out in our pane template file.
  • 0:23
    We'll also get the panel pane title from the pane object,
  • 0:26
    and print that out in an HTML heading tag
  • 0:29
    with the heading class selected in the settings form.
  • 0:32
    All the code for the module on the plugin

CTools Style Plugin: Putting It All Together

Loading...

Now we have all the code in place for both our custom module and our style plugin. It's time to put it all together into our pane template file.

In this lesson...

  • Connect values from settings form to template file
  • Utilize values from pane object
  • Utilize values from submitted settings form

All the code for the module and plugin is contained in the Resources section of this lesson. It's now your turn to create your own CTools Style Plugin!

Downloads: 
Log in or sign up to download companion files.
Additional resources: 

The code for this plugin and module is located in sites/all/modules/demo_panestyles. See Companion Files to download the Files export, which also contains a demo site for Lessons 8-19 of Building Websites in Drupal 7 with Panels. Log in at /user with username "admin" and password "admin."