Hi. Sorry for asking here, I've got a strange problem. In node teaser template I output URL to this node using $node->path. But this doesn't works for anonymous users - urls resets to /. Where could be the problem?
In other words - should I grant some rights to get $node->path working for anonymous users?
(or its not good idea to use $node->path for getting path the the node? :)
fantomas: you want to link to 'node/' . $node->nid, using the l() function.
l?
l: Format an internal Drupal link. => l($text, $path, $options = array()) => http://api.drupal.org/api/function/l/6
beeradb_: I think no. I use this code for "image with link": path; ?>"><?php print $node->field_rf_photo[0]['view'] ?>
Looks like I am wrong? :)
you are:)
sorry, to low EXP :)
fantomas: use the image tag as the first argument to l, and then for the options parameter use array('html' => true)