[drupal-support] get node currently seen
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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD4DBQFCZ77tgegMqdGlkasRAnNNAJY+twu4LQfDYKzVAgsDTgNxj7RHAKCpZHAR hMEnot/rCPsB8rrITydE7Q== =W1HJ -----END PGP SIGNATURE-----
participants (2)
-
Adrian Rossouw -
Maykel Moya