*Could* be a simple yes/no answer - or point me to some docs...

I have a custom views_plugin_style that has options that can be set through the Views interace (i.e. output teaser/full node/just title/4 colums/whatever)

What I would like to do is be able to expose these somehow to the Content Pane settings (possibly under 'allow settings', or as a new Setting) so that I can then pass them on to the Pane config in Panels.

This would save me creating a Content Pane for each minor modification to the content type settings and polluting my Panels 'Add Content' pane with these variants, and also allow me to change at will through Panels...

It seems (at least to me) like this would be a good thing for all views styles...

So: Is there some hook that I can use to add options in the Pane Settings page...
Or: In order to do this, will I have to write my own display plugin (maybe extending views_content_plugin_display_panel_pane)
Or: Is it simply not possible.

Hope I've explained it all well enough here...

Any pointers appreciated...

Comments

dawehner’s picture

Project: Views (for Drupal 7) » Chaos Tool Suite (ctools)
Version: 6.x-3.x-dev » 6.x-1.x-dev
Component: Code » Views Content

Move to ctools because that's the right issue queue.

Just from reading the code i would say no, but there might by some mightiness in the code.

merlinofchaos’s picture

Well, anything that can be 'exposed' can be exposed to a pane as a configuration setting. I don't know if styles can actually expose things, though. Possibly it can be done with a custom exposed form handler, though? That's where I would research first.

subspaceeddy’s picture

Status: Active » Closed (fixed)

OK thanks for your input guys - at least I know where to start with it - I'll investigate further...