Re: Smart Navigation Using Smarty ?
| From: | Jim Harlindong | Date: | Thu, 01 Mar 2001 17:05:50 +0000 |
| Subject: | Re: Smart Navigation Using Smarty ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-256@lists.php.net to get a copy of this message | ||
Monte,
Excellent !!!!! Thanks for this great tip !
I am in the process of converting my whole site to Smarty based!
My pages and codes all look very clean now!!!! THANKS !!
Regards,
Jimmy
> -----Original Message-----
> From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt
> Sent: Friday, 2 March 2001 3:03 AM
> To: Jim Harlindong
> Cc: smarty@lists.ispi.net
> Subject: [smarty] Re: Smart Navigation Using Smarty ?
>
> Put your navigation in a nav.tpl file, something like this:
>
> {if $page ne "home"}
> ... home button ...
> {/if}
> {if $page ne "search"}
> ... search button ...
> {/if}
> {if $page ne "contact"}
> ... contact button ...
> {/if}
>
>
> Then when you include the template, pass the variable
>
> {include file="nav.tpl" page="home"}
>