Page layout in this unit we will see how to apply the template tag system structure to a standard template page. In this example, we have applied a simple HTML page layout. for details, see: This page consists of multiple scale units, just like page settings.
Page layout
In this unit, we will see how to apply the template tag system structure to a standard template page. In this example, we have applied a simple HTML page layout. please refer:
This page consists of multiple scale units, just as page designers and developers are familiar. the body of this page consists of three contained units: header, content body, and footer. now let's take a look at these units and learn how to apply the template tag system.
Page Subject
The following code unit displays the subject:
The Page Body Layout
1
<@ SaleMonth = data. getValueBean ('sale _ month') @>
<@ SaleTitle = data. getValueBean ('sale _ title') @>
<@ DealHeading = data. getValueBean ('dest_heading ') @>
<@ SalesAreaID = 'central District '@>
<BR> 2 <@ = viewConfig. getAppTitle @> <BR>
3 <@ include 'pageheader. SS' @>
|
4 <@ include 'sale/pageContent. SS' @>
|
5 <@ include 'pagefooter. SS' @>
|
1: page declaration
The first interesting entry is the page declaration at the top of the page (1 ). we declare these variables at the beginning of the page, so these variables will be applied on the following page and include pages like the header.
2: Page title
Next, we will apply the expression to initialize the page title (2). This value can be obtained from the view-resources element in the configuration file using ViewResourcesConfig-> getAppTitle: