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.
|