Master Pages

An important aspect of creating a web site is having what is called a master page. This is the HTML that corresponds to the parts of the web page that don't change as you move from page to page. A good example is the navigation menu bar at the top of a page, links you want to display on the side of the page at all times, or a footer section.

It's easy to create these master pages for web mode applications in WorkflowFirst. You simply define the HTML file and set it under the Skins section of the Application. There are two fields in that record that are pertinent to web mode: WebMode Master Page and WebMode Login Page. You should put the master page into the 'WebMode Master Page' field. The login page entry is for creating your own alternative to the login page in WorkflowFirst for applications that are in web mode.

The master page is a regular HTML file, which can also contain DbfScript markup. However it must contain one important command: Somewhere in the page there must appear a '%BODY%' command. This is where the actual web page will go for each page. The rest is repeated for each page, but the body will change depending on which page is being viewed.

If the master page is set, then all web mode pages will be rendered using the master page as the outside of the page, and the actual web page as the %BODY% of the master. 


Next Topic:
v4.2.0.956 (beta)
Up Since 2/29/2024 12:02:23 AM