Hi, I have a page with nid 1 (node/1) and alias set to "foo".
How can I get "foo" alias ? I need to get it for change the page .tpl.php template file. I had thinked to get it via arg(0) function, but "node" is returned.
Tnx.
M.
On Wed, 26 May 2010 22:23:01 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Hi, I have a page with nid 1 (node/1) and alias set to "foo".
How can I get "foo" alias ? I need to get it for change the page .tpl.php template file. I had thinked to get it via arg(0) function, but "node" is returned.
drupal_get_path_alias
Ivan Sergio Borgonovo ha scritto:
On Wed, 26 May 2010 22:23:01 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Hi, I have a page with nid 1 (node/1) and alias set to "foo".
How can I get "foo" alias ? I need to get it for change the page .tpl.php template file. I had thinked to get it via arg(0) function, but "node" is returned.
drupal_get_path_alias
Thanks...
M.