Display current pages Taxonomy Terms and add to body class in css

I'm looking for a way to add a class tag to the body based on a taxonomy page term.

site/vocabulary/term

eg. mysite.com/champ/jason

So add jason to the page body tag so that I can have a background that changes for each term.
I have tried to modify the following code but it doesn't seem to work with D7.

Template.php

Changing default theme post installation causes issues

Hi,

I am a newbie to Drupal. Got it installed locally on my desktop with the following configuration .
Drupal 7.4
IIS 7.0 ( installed the url rewrite module)
MySql 5.5
PHP 5.3

Drupalcon Denver 2012 Call for Speakers

Drupalcon Denver 2012 header

Denver, CO is hosting the next North American DrupalCon happening on March 19-23, 2012 at the massive, well-appointed Colorado Convention Center. The worldwide Drupal Community is what makes DrupalCon so fun and exciting, and Colorado's community is thrilled to be the home of "Drupal Elevated" -- tickets go on sale soon, so be sure to follow us on twitter and we'll tell you what's going on, @drupalcondenver.

DrupalCon is a world-class conference with a world-wide audience. If you or your organization actively use Drupal, or even if you never have but want to learn, DrupalCon is your chance to engage the community, learn from others, and share your experiences.

DrupalCon Denver is now accepting session submissions -- go to http://denver2012.drupal.org/ to submit your idea today! If you want to present in Denver, now is the time to start thinking about what this year's theme, "Collaborative Publishing for Every Device," means to you, and we're accepting sessions in the following tracks:

  • Site building
  • Coding and development
  • Design and user experience
  • Drupal community
  • Business and strategy
  • Mobile
  • Commerce
  • Nonprofit, Government and Education

Create View based on current user and content's user reference field.

I have a Content Type name "Video" with a user reference field in that content type that has all of the current system users in a dropdown.

I want to create a view that compares the current user and the "Video" content type's user reference field. So my view will show the title of all the "Video's" that has the same user reference as the current logged in user.

I have installed Reference 7.2-x Dev and Views I am not sure how to set my view up to compare the above pieces of data.

Please help. Any advice would be amazing.

custom entity search using apachesolr

Hi all,
I m using apachesolr first time with D7, does apachesolr module support searches for custom entities?

Add divs inside main menu?

Hey guys,

In the past i've just used jQuery to stuff some purely aesthetic divs inside my main menu, but I'm trying to do things right! I'm building a template out, and here is my current main menu call in page.tpl :

       			 <?php print theme('links__system_main_menu', array(
         			 'links' => $main_menu,
         			 'attributes' => array(
         			   'id' => 'main-menu',
       			     'class' => array('links', 'inline', 'clearfix'),
    			      ),
     			     'heading' => array(
      			      'text' => t('Main menu'),
     			       'level' => 'h2',
     			       'class' => array('element-invisible'),
   			       ),
  			      )); ?>

Now, I wanted to add span tags to each list item title. so in template.tpl


function colorblinddesigner_preprocess_page(&$variables) {
  global $theme_path;
  foreach ($variables['main_menu'] as $key => $value) {
    $variables['main_menu'][$key]['html'] = TRUE;
    $variables['main_menu'][$key]['title'] = '<span class="rockwell_regular">'. $variables['main_menu'][$key]['title'] .'</span>';
  }
}

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x