Hello,
I am using the views module to create custom product pages by category. I would like to display the items 3 across on a page. How can I do this?

Comments

merlinofchaos’s picture

You need to use a theme function to override the default output. If you're just using a teaser view for this, then you want to use (assuming phptemplate)

function phptemplate views_view_teasers_VIEWNAME

The function itself is fairly straightforward, it (eventually) just iterates over the $nodes array, calling node_load and then node_view.

What you'd need to do is set up some divs and some CSS to lay it out 3 across.

pyrello’s picture

Okay,
I'm sorry that only made a little bit of sense to me. Could you eloborate?

merlinofchaos’s picture

Status: Active » Fixed

Try the views bonus pack + panels.module

Anonymous’s picture

Status: Fixed » Closed (fixed)