Drupal 6 Theming Resources

Theming Views in Drupal 6

http://www.agileapproach.com/blog-entry/theming-views-drupal-6

Theming Views In Drupal 6.x

http://www.drupaler.co.uk/blog/theming-views-drupal-6x/67

views-view-unformatted.tpl.php tweak

To add clearing to each even row i had to do the following

/**
 * @file views-view-unformatted.tpl.php
 * Default simple view template to display a list of rows.
 *
 * @ingroup views_templates
 */
 
$index = 1;
 
?>
<?php if (!empty($title)): ?>
  <h3><?php print $title; ?></h3>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div class="<?php print $classes[$id]; ?>">
    <?php print $row; ?>
  </div>
<?php
  if ($index % 2 == 0) {
    print '<div class="clear"></div>';
  }
  $index++;
  endforeach;
?>

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p> <a> <em> <strong> <ul> <ol> <li> <b> <strong> <i> <u> <img> <br> <br/>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Recent flickr photos

Diving in Crete
Crete sunset
Residence in cliff
Tommy
Diving in crete
Crete
Crete
Athens
Athens
Athens

Recent tracks

  • Lullabies To Paralyze
  • Five Songs and a Cover
  • Finding Beauty In Negative Spaces
  • Rage Against the Machine
  • Scream
  • Weezer (Blue)
  • Stadium Arcadium (disc 1: Jupiter)
  • Them Crooked Vultures