Extending Views With Custom Settings
Sean P. O. MacCath-Moran (a.k.a. emanaton)
We had a problem, and the solution is pretty nifty! Like many of the super-cool high-level plugins in Drupal, the "DisplayExtenderPluginBase" object isn't well documented. Using it turns out to be easy enough once you know the trick of it, and doing so allows adding interesting integrations directly into Views that an admin-level user can set and adjust at need and that a coder can respond to accordingly. In this session we'll walk through the problem we set out to solve, and then will discuss the basic implementation of this plugin and then how this allows us to resolve a few real world problems, all as an inspiration to attendees on how they can apply similar solutions (e.g. triggering javascript to run on a per-view basis depending on config settings, adding admin-user configurable sub-titles, etc.).
We had a problem, and the solution is pretty nifty! Like many of the super-cool high-level plugins in Drupal, the "DisplayExtenderPluginBase" object isn't well documented. Using it turns out to be easy enough once you know the trick of it, and doing so allows adding interesting integrations directly into Views that an admin-level user can set and adjust at need and that a coder can respond to accordingly. In this session we'll walk through the problem we set out to solve, and then will discuss the basic implementation of this plugin and then how this allows us to resolve a few real world problems, all as an inspiration to attendees on how they can apply similar solutions (e.g. triggering javascript to run on a per-view basis depending on config settings, adding admin-user configurable sub-titles, etc.).