Overview
Username:  
Password:
  > Home
> User Guide
> Reference
> Portal Object
v Development Guide
    o Overview
    > A Typical Page (C)
    > Data Handling
    > Applications
    > Working BEE


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Development Guide >> Overview <=  =>      <  1  2  3  4  5  6  7  8  9  10  >  
View One An overview to BEE website development

Viewing one record is the basic.  Once you understand how it works, the other five layouts are only adding on to it.

For the "View One" layout, all you need to do is to design the layout with {fieldname} representing the data record fields.

For example:

The best seller {Title} is now only ${Price}.

{=Buy now|buybutton}

and Working BEE will show the page with the bracketed fields (Title and Price in this case) substituted with their corresponding values in the database record.

If you want the Price display to be formatted nicely, you can use {Price|formatnum:,2} instead.  See BEE Conversions for more details.

The {=Buy now|buybutton} link is a button.  The "=Buy now" is not a field name.  The leading "=" sign indicates a literal value.  The "buybutton" conversion creates a button with "Buy now" as the button face.  The visitor can click the button to add the item to the shopping cart.

Shopping related conversions include "buybutton", "buylink", "checkoutbutton" and "checkoutlink".  For example, "{=Add to cart|buylink}" will give you a link showing "Add to cart" and clicking to add the item to the shopping cart.

There are other system variables that you can use:

  • {_siteurl}: The Site URL (pt%SiteURL)
  • {_recordpath}: Record Path (the TEAPOT page to show the record.  For example, if {_recordpath} is "children/001.htm", BEE will present the record at /drb/children/001.htm.  This makes "deep linking" very easy.
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