How to know the url of the page
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. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
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 http://www.webthatworks.it
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. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
participants (2)
-
Ivan Sergio Borgonovo -
Michel Morelli