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