Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedYou 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.
Comment #2
pyrello CreditAttribution: pyrello commentedOkay,
I'm sorry that only made a little bit of sense to me. Could you eloborate?
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedTry the views bonus pack + panels.module
Comment #4
(not verified) CreditAttribution: commented