Page 1 of 1

PHP page name script

Posted: Mon May 14, 2007 11:17 am
by PCgeek
I want to put a php script on a content page that loads images from an SQL database based on the pages name.

How do i make the PHP script recognise the page name? I want to have the script callable ie {imagegalleryphp}

Thanks in Advance.

Re: PHP page name script

Posted: Mon May 14, 2007 11:38 am
by alby
PCgeek wrote: I want to put a php script on a content page that loads images from an SQL database based on the pages name.

How do i make the PHP script recognise the page name? I want to have the script callable ie {imagegalleryphp}
With un User Defined Tags and $page_alias (alias of current page), for ex:
{imagegalleryphp page=$page_alias}

Alby