By quotientix on
Hi Drupal-Fans,
I would like to print the relative URL of a page in a block, i.e.
I would like to print content/test
Is there a variable accordant to print $node->nid; that gives me the URL?
Thanks!
Hi Drupal-Fans,
I would like to print the relative URL of a page in a block, i.e.
I would like to print content/test
Is there a variable accordant to print $node->nid; that gives me the URL?
Thanks!
Comments
It that is the alias of the
It that is the alias of the node referenced you can use
print url("node/$node->nid")Perfect, many thanks!
Perfect, many thanks!