Page 1 of 1

tag if

Posted: Thu May 22, 2008 7:16 am
by ingegnimultimediali
Salve a tutti,
vorrei gestire nel template il tag 'if' in maniera tale da poter far apparire del testo solo se mi trovo su una pagina che ha un particolare alias.
Ho provato in questo modo, ma nulla...

Code: Select all

{if $page->alias == 'home'}
stampa testo
{/if}
Qualcuno mi può aiutare?
grazie

Re: tag if

Posted: Thu May 22, 2008 9:06 am
by alby
ingegnimultimediali wrote:

Code: Select all

{if $page->alias == 'home'}
stampa testo
{/if}
Se ricordo giusto è:

Code: Select all

{if $page_alias == 'home'}
stampa testo
{/if}
comunque inserisci il tag {get_template_vars} che stampa TUTTE le variabili conosciute

Alby