Is there a way to inject a css class in panels regions ?

jide - October 22, 2009 - 15:27
Project:Panels
Version:6.x-3.2
Component:Plugins - styles
Category:support request
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Hi there,

Is it possible to inject a css class inside a region somehow so instead of having "panels-flexible-region ..." we could have "panels-flexible-region my-custom-class" ?

Thanks !

#1

merlinofchaos - October 22, 2009 - 21:22
Status:active» fixed

Yes, a setting for that should already be available in the region settings when the layout manager is on.

#2

jide - October 22, 2009 - 21:27

Thank you Earl, but apart from the region style setting, i can't see such an option. Or maybe I am looking at the wrong place ?

In fact I want to do this programmatically, but I will be able to find out how to do by setting it through the UI.

#3

jide - October 24, 2009 - 02:49
Status:fixed» active

Status change.

#4

merlinofchaos - October 29, 2009 - 14:49
Status:active» fixed

Assuming you're using the flexible layout:

Click 'show layout designer'

Above the region you want to modify, click the word Region with the little down arrow.
Click 'Region settings'

Set the CSS class variable

#5

jide - November 7, 2009 - 15:47

Thanks.

#6

thomasmuirhead - November 18, 2009 - 12:44

Hi I'm not sure if this is a bug, I've also posted about it here: http://drupal.org/node/635984

but I just wanted to warn people that I optimised my CSS and weirdly my region CSS stopped working and started automatically taking the pane CSS from the pane within it.

So, if you're going to optimise after adding a region CSS, backup first, and let me know if it had no effect...cos then I can rule it out.

Thank you

Thomas

 
 

Drupal is a registered trademark of Dries Buytaert.