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

sys Class
debug Class
Intrinsic Conversions
>> Portal Object <=  =>      <  1  2  3  4  5  6  7  8  >  
The Portal Object BEE Portal Object Manual

The Portal Object encapsulates all the BEE portal functions into one piece.  It is to be created at the begining of the web page before any BEE features are used.  It is typically right after "<head>", so that you can start using the portal object's features from the "<title>" onwards.  This is common to both Page Menu and Action Menu models.

<script language="bee">
include "portal/portal.bs";
pt = new portal;
PortalObjectName = pt;
// Useful constants
SiteURL = "{pt%SiteURL|pt%convPath:,/}";
// Utility actions
switch ('{sys%urlpart:pathpage}') {
case '{pt%Subpath}/menuedit.htm':
    include "portal/menuedit.bs";
case '{pt%Subpath}/organizer.htm':
    include "portal/organizer.bs";

Note 1: While the portal object "pt" is an arbitrary name, the variable name "PortalObjectName" is fixed and must be set to the name of the portal object ("pt").  Other system utilities use the PortalObjectName to find the portal object.

 Note 2: The {SiteURL} variable is derived from {pt%SiteURL} by appending a "/" at the end unless there is a "/" already.

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