By defunctcitizen on
I'm using the Views module to output a table displaying three fields:
Node Type | Node Author | Comment Count
I would like to have the Node Type be a link that clicks through to the node's page. I know I can add a fourth 'Node: View link' field that adds a "View" link but I'd like to have the Node Type (which isn't a link) click through to the node.
Any ideas?
Thanks!
Comments
I would think this would be
I would think this would be altering the way the Node Type field works completely, so.. it may not be an easy solution without altering the code (bad idea), writing another module, or doing it via the template (probably best way if possible). I've just recently looked into theming views displays, so I can't be a huge help here, but you could possibly strip the tags from the Node Type and have it go to the node instead. Just a thought... no idea if it'd work.
thanks for the reply
i do have some experience theming views using the wizard... would i be able to put something like:
<a href="<?php snippet that inserts node url ?>"> <?php print $type?> </a>into the view's theme?
unfortunately i don't have much experience with php or the drupal engine.
thanks again!