This forum is for assistance with theme development.

Bonus view grid theming

Hi,

Is it possible to use several instances of basically the same function inside template.php

Like, I have a function for a bonus view grid:

function channel_nine_views_bonus_view_grid($view, $nodes, $type) {
  drupal_add_css(drupal_get_path('module', 'views_bonus') .'/views_bonus.css');
  $fields = _views_get_fields();
  $content = '<table class="view-grid view-grid-' . $view->name . '">';
  $count = 0;
  $total = count($nodes);
  foreach ($nodes as $node) {
    $item = '';
    if ($count % 2 == 0) { 
      $content .= '<tr>'; 
    }

    foreach ($view->field as $field) {
      if ($fields[$field['id']]['visible'] !== FALSE) {
        if ($field['label']) {
          $item .= "<div class='view-label view-label-$field[queryname]'>" . $field['label'] . "</div>";
        }
        $item .= "<div class='view-field view-data-$field[queryname]'>" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view) . "</div>";
      }
    }
    $content .= "<td class='view-grid-item'><div class='view-item view-item-$view->name'>$item</div></td>\n"; 

    $count++;
    if ($count % 2 == 0 || $count == $total) {
      $content .= '</tr>';
    }
  }
  $content .= '</table>';
  
  if ($content) {
    return $content;
  }
}

Note type driven color schemes ?

Folks,

In Garland and/or other themes, how would one implement administrative ability to assign different color shemes to different node types ?

Thanks.

Multiflex theme and Attached Node module - line break issues

I'm using the Attached Node module with the Multiflex theme on Drupal 4.7, and the line breaks are messed up, so that lines are cut off - like here:

http://patienteninfo.praxis-som.de/?q=node/2

Anybody got any ideas?

Displaying admin menu without login form

Hi, I need to display the admin menu without the login form. So to login I goto site.com/login and once I'm logged in the admin menu will display in a specific place on selected pages. I can make the admin menu display on selected pages without a problem.

I haven't found a way to split the login form from the admin menu. Is this possible?

Thanks for reading.

Does any of the themes work for FF, IE7, and IE6?

We're running Drupal 5.x, Panels, Views, etc. and the Garland theme is GREAT, and beautiful when the user is running FireFox or IE7. Unfortunately, it looks TERRIBLE for those using IE6! So I'm trying to find a solution that will look equally good under all 3, including the 2 column "stacked" panels layout.

Any suggestions are greatly appreciated!

Radi

theming webform nodes

Normally node titles are stitched to page.tpl.php, but as for webform module, webform title is also displayed by the webform module itself, resulting in a double title line inside the page. Of course I can hide it via css, but this shouldn't be the way things goes. Is there any quick way to do so?

Pages

Subscribe with RSS Subscribe to RSS - Theme development