Thursday 29 July 2004 8:39:26 am
In my pagelayout.tpl , I'd like to add a login/logout link (I need it in all my pages). I've tried this but I get some errors:
<!-- Main menu table -->
<table cellspacing="0" cellpadding="0" class="menu">
<tr>
<td><a href={"/"|ezurl}>Home</a></td>
<td><a href={"/news"|ezurl}>News</a></td>
<td><a href={"/membres"|ezurl}>Memberss</a></td>
<td><a href={"/guestbook"|ezurl}>Guestbook</a></td>
<td><a href={"/links"|ezurl}>Links</a></td>
<td><p class="menuitem">
{section show=eq($current_user.contentobject_id,$anonymous_user_id)}
<a href={"/user/login/"|ezurl}> Login </a>
{section-else}
<a href={"/user/logout/"|ezurl}> Logout </a>
{/section}
</p></td>
</tr>
<!-- End of main menu table -->
Can someone tell me how to realize this. May be there is another way ? Thanks.
|