![]() |
![]() |
![]() |
|
![]() |
|||
![]() |
|||
![]() |
GoLive 6 Dynamic Content Samples | ||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||
Main View | Administration View | How it Works | ||||||
![]() |
||||||||
![]() |
|
A. Dynamic table to display products. B. Product name. C. Regular price. D. Current price. E. Dynamic pulldown menu to set product promotion. F. Update button. Content SourcesThere are two content sources. The ProductData table is used to edit and display the product information. The Promotions table is used to dynamically construct the promotions menu. AThe dynamic table is bound to the ProductData content source to display all of the products. The update button is not part of this table, since if it were GoLive would treat it as mock content. The two tables are still contained within a single form so that the update button affects the form controls. BThe template row contains bindings to display each product's name, regular price, current price, and promotion. The name text is a link to the Edit Products page. It uses Show Details of Current Record so that the user can click on the link to edit the product's name, description, or other information. CThe regular price is a simple text binding. It uses the Format Currency text filter to display the correct currency symbol and number of digits. DThe price text field is a simple form control binding. EThe promotions menu is dynamically constructed from the Promotions table. There is one menu choice for each record in the table. To dynamically construct a pulldown menu like this you use the Construct Dynamically section of the Dynamic Bindings palette. There are three text boxes: one for the content source, one for the user visible text labels, and one for the values to record in the database when the user selects an option. In this example the labels and values both come from the Promotions.Name field. Whether a pulldown menu is static or dynamic, you bind it just like you bind any other form control. In this case the menu is bound to ProductData.Promotion. FThe Form Action for the update button is Update Record. When you select a Form Action in the Dynamic Bindings palette, GoLive automatically targets the correct page in the config/actions folder to perform the indicated action. As this page shows, you can use the Update Record action can change several records at once. |