Closed (outdated)
Project:
Panels
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2011 at 06:54 UTC
Updated:
13 Jul 2026 at 21:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedSorry it's taken me so long to get to this:
1) What about adding the row class to $pane->css_class instead of adding another div just for the striping?
2) Let's call the style 'Striped'
3) Let's remove the reference to the 'Tabs' style int he doc :)
Comment #2
amitaibu> What about adding the row class to $pane->css_class instead of adding another div just for the striping?
If I'm not mistaken if you add $pane_css_class via code and a user adds CSS class via UI, the UI overrides the code, that's why I used the wrapping
<div>Comment #3
amitaibuedit: double post
Comment #4
amitaibu> Sorry it's taken me so long to get to this:
No problem,good to see you back in the issue queue :)
Comment #5
merlinofchaos commentedYou could always append it to pane_css with a space.
Comment #6
amitaibuPatch adds class to $pane->css via hook_panels_pane_content_alter().
There is a todo referencing #1230324: Pass $display in hook_panels_pane_content_alter or cache $display
Note that also here we are bitten by the missing $display->did, in case the page is exported:/
Comment #7
watchdog commentedThis can actually easily be accomplished in template.php
Comment #8
michelleI tested the patch in #6. It applies cleanly and works. The issue in the TODO has been committed so I made the change based on that and got rid of the TODO section. This is the change that was committed:
- $function($content, $pane, $this->display->args, $this->display->context);
+ $function($content, $pane, $this->display->args, $this->display->context, $this, $this->display);
I'm not 100% what "$this" is but it seemed like "renderer" made sense so I used that for the parameter. If I'm wrong, that needs to be changed.
Leaving at Needs Review since I made changes.
Comment #9
dremy commented@Michelle I just tested patch #8 first on a local build, then on simplytest.me with a clean build and couldn't replicate that this patch works. #7 does work.
Comment #10
japerryDrupal 7 is no longer supported, closing.