Re: If statments....

[email protected] (mikespub) Tue, 18 Nov 2003 19:49:24 GMT
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization not much
Message-ID <[email protected]>
In article <bpdsm4$5hi$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, [email protected](ViperWeb Consulting) wrote:
>
>How do I do if starments in templates?
>
>I want it to show the login infor for people not loged in and a Welcome
>back for people loged in.

The best place to start for all your template questions is with the
documentation for Block Layout :

http://docs.xaraya.com/docs/rfcs/rfc0010.html

You can use Xaraya API functions inside your if statements, e.g. :

<xar:if condition="xarUserIsLoggedIn()">
    ... you're logged in...
<xar:else/>
    ... hello world ...
</xar:if>

Mike.