Closed (fixed)
Project:
Panels
Version:
5.x-2.0-rc1a
Component:
Panel nodes
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jun 2008 at 13:31 UTC
Updated:
7 Dec 2009 at 22:38 UTC
Jump to comment: Most recent file
Hi. I am using D5.7 + Panels 5.x-2.0-beta5.
1) I create a panel node
2) I do set a CSS ID value in the edit form
The specified CSS ID does not appear anywhere in the HTML code of the generated page.
--
GP
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | panels_node_patch.txt | 714 bytes | mleicester |
Comments
Comment #1
dccircuit commentedI am also experiencing this in 5.x-2.0-rc1a (Drupal version: 5.9)
Comment #2
sdboyer commentedWhat layout are you (both) using when this problem occurs?
Comment #3
gp.mazzola commentedHi sdboyer,
I am using the flexible layout. I gave an CSS ID to the whole panel node, and also to panes inside the panel. Panes'IDs come out, but not the panel's one.
On another website, I am using the latest rc version, and as noted by dccircuit, the same problem. Even here flexible layout.
I tried switching through themes, but the problem persists. So it does not seem theme related.
Let me know if I could be of more help.
I could try creating panels in differents layouts and see if the problem is layout indipendent.
Ciao,
GP
Comment #4
sdboyer commentedYeah, it's definitely not going to be theme related. If you could try switching layouts and see if css id appears, that'd be great...
Comment #5
gp.mazzola commentedHI sdboyer. I just made a test on the more recent website D5.10 + panels 5.x-2.0-rc1a + Graland theme
1) Create a panel node
2) Set and ID for the node
3) switched through every available layout
==> the CSS ID set for the panel does never appears
Only css ID and classes for panes show up.
Ciao,
GP
Comment #6
mleicester commentedI think the problem is in line 297 of panels_node.module.
It reads:
$display->css_id = $node->panel_node['css_id'];It should read:
$display->css_id = $node->panels_node['css_id'];(i.e. a missing 's')
World's smallest patch attached...
Comment #7
mleicester commentedComment #8
gp.mazzola commentedThank you ordinaryfool!
I manually edited the file adding the missing 's', and now it works! :)
Ciao,
GP
Comment #9
dellintosh commentedApplied and tested. Works great now. :)
Comment #10
dellintosh commented(missed this in previous post.)
Comment #11
sdboyer commentedCommitted. Thanks!
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
phicarre commentedI have the patch.
With the "configure settings pane" I configure the node content, I put "toto" as CSS ID
In the style.css file of my theme I define "toto":
toto {
background-color: red;
}
But my pane is not red !!
What could be wrong ?
Comment #14
dellintosh commentedin your css you should be using the following for an ID definition:
#toto {
background:red;
}
(Make sure you aren't forgetting the '#', since that tells your browser that it's an ID and not an HTML tag.) Let us know if you are still having troubles. :)
Comment #15
phicarre commentedI corrected as you wrote: always trouble BUT I forgot to say I tried the 6x20-alpha2 and 6x2x-dev versions !
Comment #16
dellintosh commentedThat was your problem. :) This patch was intended for the 5.x-2.0-rc1a, NOT 6.x.. :) I would recommend reverting to the unpatched versions, and if you are still having troubles, please start a NEW issue so we may track a fix for it instead.
Thank you,
-dellintosh.
Comment #17
dellintosh commentedissue closed.
Comment #18
ronline commentedI’m having the same problem on Drupal6 with modules/panels/plugins/layouts/flexible/flexible.css .