Page Menu Model
Username:  
Password:
  > Home
> User Guide
> Reference
v Portal Object
    o Page Menu Model
    o Action Menu Model
    o Object Reference
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Portal Object >> Page Menu Model <=  =>      <  1  2  3  4  5  6  >  
Login/Logout Menu that clicks to pages

Even though all BEE Portal sites come with login/logout facility, you don't always need to provide a login/logout form unless you want your user to login as well.  (The admin user can always login via the admin site.)  But if do allow user login, this is how you do it.

There are three things about login and logout:

  • The Login/Logout form,
  • Error message from the login/logout process, and
  • the Admin utility links.

First, let us look at the Login/Logout form:

Note: {SiteURL} is {pt%SiteURL} appended with a "/" at the end.

<form method=post action="${SiteURL}index.htm">
<beeaccess>
Logged in as ${sys%auth:loginname}<br>
<input class="button" type=submit name=Submit value=Logout>
<beeelse>
Username:<input class="field" type=text name=username size=10><br>
Password:<input class="field" type=password name=password size=10><br>
<input class="button" type=submit name=Submit value=Login>
</beeaccess>
</form>

Secondly, insert the Error message, which can be put anyway but it is recommended to put it immediately before or after the login form so as to catch the user's eyes:

<beeif if="'{pt%AuthStatus}'">
${pt%AuthMessage} (Error ${pt%AuthStatus})
</beeif>

Finally, the Admin user has some special utilities available: The Menu Edit page, the Organizer and the Admin site:

<beeaccess "admin">
<a class="pagebaritem" href="javascript:showMenuEditPage()"
    title="Add, Modify or Delete Menu">Menu Edit</a><br>
<a class="pagebaritem" href="javascript:showOrganizer()"
    title="Add, Copy or Delete Pages or Files">Organizer</a><br>
<a class="pagebaritem" target="${MainTarget}"
    href="${SiteURL}admin/"
    title="Administer the web site">Admin Site</a><br>
</beeaccess>

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd