How can I get a reference to the currently viewed node from a phptemplate based theme ?
An option (not the most elegant) could be cut the irrelevant part of the path to left only 'node/15' or 'node/50', but this don't work with aliased nodes.
Regards, maykel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 21 Apr 2005, at 8:06 AM, Maykel Moya wrote:
How can I get a reference to the currently viewed node from a phptemplate based theme ?
PHPTemplate for 4.6 allows you to access the currently viewed node from the page.tpl.php.
The variable name should be $node , iirc.
- -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com