Hi,
I have Ubercart webshop module installed. (great one!)
As an addition, I use 'Views' module to display products in a teaser view, becouse Ubercart is somewhat limited this way. (UBrowser is too simlpe for my needs)
I have created custom templates for 'product' node type. Both the teasers and the body have templates.
Images will be displayed this way:
<?php
print $node->content['image']['#value'];
?>
I'd like to define a HTML link to the image in the teaser's template, that points to the node, just like the 'node title' does.
How should the code look like?
I've checked the teaser variables, but I can get on with them.
I'm not able to even print out the path of the node, using variable: $node->path
Could anyone advice?
Thanks in advance,
Zsigmond
Comments
Comment #1
Anonymous (not verified) commentedupdate:
neither
nor
return any output...
Comment #2
Anonymous (not verified) commentedThe solution seems to be this one: http://drupal.org/node/187821
Let's check!
Comment #3
Anonymous (not verified) commentedYesss!
The code snippet, I was looking for:
Thanks! :)
Check out at: http://www.lingvini.com/debian_polo
[SOLVED]
Comment #4
Anonymous (not verified) commentedRock'N'roll! :)
Comment #5
Anonymous (not verified) commentedfix:
Domain should be hardcoded in the code, becouse Views module handles path values at a real strange way.