Drupal 6 / Views2 Grid style: whole cells link to nodes
Posted
by jackocnr
on Stack Overflow
See other posts from Stack Overflow
or by jackocnr
Published on 2010-05-11T11:47:37Z
Indexed on
2010/05/11
13:24 UTC
Read the original article
Hit count: 328
I have a Users page, which is simply a nicely styled grid (HTML table) of users. I'm displaying a few fields for each one, and both the name and the profile picture have been set to link to the user node.
What is the best way to change it so that the whole cell (HTML td) links to the user node? Would you have to use javascript?
I've looked into modifying the theme of the view (over-riding the Style output e.g. views-view-grid--users.tpl.php), but cant see an elegant way to get the URL of the user node. And I think you would have to use javascript anyway to turn a whole block element into a link.
© Stack Overflow or respective owner