Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1097

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

10 votes
Accepted

Dynamically adding a CSS class to a view row with template.php

function pgc_preprocess_views_view_unformatted__home_listing(&$vars) { // Borrowed this bit from http://drupal.org/node/312220 $view = $vars['view']; $rows = $vars['rows']; foreach ($rows as …
JGrubb's user avatar
  • 377
8 votes
2 answers
13k views

Dynamically adding a CSS class to a view row with template.php

I've actually reached the bottom of Google trying to figure out how to add a css class to each row of a view. The trick is that I need the class for each row to be dynamically determined based on som …
JGrubb's user avatar
  • 377
2 votes

how do I add javascript to a specific panel-page

I'd probably do this in the theme with template_preprocess_panels_pane() - http://drupalcontrib.org/api/drupal/contributions!panels!panels.module/function/template_preprocess_panels_pane/7 You can do …
JGrubb's user avatar
  • 377