• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Conditional Content

Conditional content is page content that displays only if certain conditions are met. It can be dynamic or static content, but it must be in a dynamic page. In the various server-side scripting languages, it’s usually created with some sort of if statement (if x is true, display this) or if-else statement (if x is true, display this; else display that). The Dreamweaver Show Region objects let you show or hide contents based on recordset conditions. Any other kind of conditional content (based on URL parameters, session variables, and so on) you can create yourself if you know the proper syntax for your server model.

The Show Region Objects

The Show Region objects, shown in Figure 23.32, let you show or hide selected page content based on various recordset conditions: if the recordset is empty or not, or if recordset paging controls are displaying the first or last records of the set. This is very handy for creating special messages, such as “We’re sorry; no records matched your search criteria.” Show Region objects are also used in the Recordset Navigation Status object to hide or show the paging links for navigating through records.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint