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  >  
Access Control Menu that clicks to pages

Each Menu item is assigned one of the access levels:

  • Public (everybody),
  • Affiliate (logged in under a realm),
  • Member (full member),
  • VIP (high privilege users),
  • Owner (the website owner), and
  • Admin (users allowed to do anything doable).

Before a user login, the session is a "Public" session.  Only "Public" menu items are shown in such session.  After the user logs in as a full member, the session becomes a "Member" session, and only Menu items of an access level equal to "Member" or lower will be shown.  These selective display of menu entries are all done by the Portal Object.  All you need is to insert the {pt%ListMenu} variable at the right place.

However, to prevent users from bypassing the menu and accessing the page via a direct URL, you need to put a safeguard into every page (there is usually only one) to suppress the information if the current session got a lower access level than the page.  For example,

<beeaccess "lt {pt%PageInfo:AccessLevel}">
<span class="error">Please login first</span>
<beeelse>
... (the proper content here e.g. <beetext ...>) ...
</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