Hello,

is it possible to modify the layout of a view using contemplate? I'm using "Bonus: Grid View" View to display a 4x4 image gallery. I'd like to display the title of the node. By default the title shows up below the image and I'd like it to show up beside the image. How can I do it?

Thanks!

Comments

Roborobotus’s picture

Hmmm maybe I didn't make mysefl clear. Here's an example. No 1 is what I have now. No 2 is what I'd like to accomplish:

http://www.picoodle.com/view.php?img=/4/2/8/f_examplem_69a4514.png&srv=i...

Anybody?

Jeff Burnz’s picture

You can probably get away with doing this with CSS, such as floating the image left e.g. .imgclass img {float:left;}

You can over ride the bonus grid view just like any other view, and mod the output any way you like.

Roborobotus’s picture

Thank you for your reply. How can I override a view using contemplate? Whe I go to: 'Home › Administer › Content templates' I see a list of content types I can modify. The problem is there are no views on the list, only content types :(

Roborobotus’s picture

Ok, so I just have to change the way my bonus grid is rendered by playing around with theme_views_bonus_view_grid($view, $nodes, $type) function and template.php? I'll try it tomorrow then :) Thanks!