Page 1 of 1
Recuperare una querystring per usarla nel template
Posted: Sat May 31, 2008 4:00 pm
by ulisse
Ciao ragazzi sapete dirmi come recuperare la variabile page attraverso un TAG?
ad esempio index.php?page=homepage
{page} = homepage <------- Esiste?
Grazie
Re: Recuperare una querystring per usarla nel template
Posted: Sat May 31, 2008 4:26 pm
by blast2007
Code: Select all
global $gCms;
$thispage = $gCms->variables['page_name'];
echo $thispage;
Fonte
wiki
Ciao
blast
Re: Recuperare una querystring per usarla nel template
Posted: Sat May 31, 2008 4:30 pm
by alby
ulisse wrote:
ad esempio index.php?page=homepage
{page} = homepage <------- Esiste?
Se è solo l'alias della pagina, puoi utilizzare la variabile $page_alias direttamente nel template
Alby
Re: Recuperare una querystring per usarla nel template
Posted: Sat May 31, 2008 4:57 pm
by ulisse
Perfetto ragazzi!
{$page_alias} va benissimo!
Grazie