Skip to content

User login

EchoDitto Tech Blog: Tutorial: How to Group Fields in Views With a Div or Span Tag

September 2, 2010 by Steve Hanson

EchoDitto Tech Blog: Tutorial: How to Group Fields in Views With a Div or Span Tag -

This is a howto for wrapping a div around a few of your view fields (and not others). This is useful, for instance, for being able to group all one's content so that it floats left but does not float around an image.

First, create a template for your view.

Create a template file in your theme directory with the same name as the views and paste the code from the level of specificity that you desire. For more information, read this introduction to views template files.

Here is the code from the stock Row Style Output:

read more

[Drupal Planet]

AdaptiveThemes