![]() |
![]() |
![]() |
|
![]() |
|||
![]() |
|||
![]() |
GoLive 6 Dynamic Content Samples | ||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||
Main View | Administration View | How it Works | ||||||
![]() |
||||||||
![]() |
|
The User Forum sample demonstrates how to create an online forum where users can post and respond to messages. It demonstrates how to create custom Form Actions and form controls. Main ViewThe Main View contains three pages. The Topics page lists all of the topics, together with how many messages they contain and the date of the last post. The user can click on one of the topics to see its messages. The Create Topic page allows the user to create a new topic. The Topics page demonstrates how to use record navigation with a dynamic table. It also shows how to pass information from one page to another using URL parameters. When a user clicks a topic, the URL includes the name of the topic so that the Messages page can display it. The Messages page uses record filtering to find all of the messages that match. The Messages page shows how to create a blank form for adding new records. This form includes custom code to create a hidden field with the correct message topic; when the user posts a new message, it automatically appears under the same topic as the existing messages. The Create Topic page shows a second technique for creating a blank form, one that is appropriate for a page that does not need a content source for any other reason than to add a record. Administration ViewThe Administration View mirrors the Main View, except that its pages include extra links for deleting messages and topics. The delete links demonstrate how to use Show Details of Current Record to pass information from one page to the next. The Delete Topic page is the most interesting one in the Administration View. It illustrates how to write a custom action that works with GoLive's existing runtime infrastructure, in this case, to delete all of the messages with a given topic. The Delete Message page shows how to delete a single messages using GoLive's Delete Record Form Action. |