Posted by badzilla on October 10, 2009 at 11:14am
Hi! I would be grateful for any advice on my problem and thank you in anticipation.
I would like to create a new style in my custom theme for Panels 3. It will be like rounded corners, but a little more sophisticated. So I will use the rounded corners style code as my starting point.
Does anyone know how I go about adding my style to the Panels 3 style menu? The menu is the one which lists:
No markup at all
No style
Rounded Corners
System Block
and I would like to add mine to it.
Anyone out there able to give me a steer in the right direction?
Many thanks
Comments
One Themer's Path
I posted a lengthy path that I took at...
http://drupal.org/node/427192#comment-2136602
Also:
http://drupal.org/node/495654
Thanks but..
..I'd already got that far with my own style - but it doesn't appear on the ctools dialog variants->panel->contents; 3rd option down brings up the style dialog. Mine is not listed.
hook_ctools_plugin_directories() is mentioned in your link. Does this need to be implemented? If so, what are the argument(s) to the function and expected return value?
Many thanks
Had some difficulty as well
Here's a few things I fuddled with when tring to get it to work...
I believe that ctools has a cache of it's own... massive cache clearing in addition to clearing the theme registry.
It's gotta be in your theme.info file, it won't show up
Check the names 'this_that_this' vs 'this-that'... as I had to try several times adjusting until I got it right.