This page is still a beta!

Tutorials


1.7. The complete code listing

The constants-field:

content {
  wrap.header1 = <h1> | </h1>
  wrap.bodytext = <p class="contenttext">|</p>
  headerSpace = 
  space = 
}
styles.content.textStyle {
  face = 
  size= 
  color =  
}
cSet {
  pageColor = #FFA801
  tableCellColor = #CC6600
  color = black
  color1 = #666633
  color2 = #333300
  fontFace =  Arial
  fontFace.text =  Arial
}
# Image maximum widths, pixels 
styles.content.imgtext.maxW = 460
# Targets, empty for no-frames websites
PAGE_TARGET =
content.pageFrameObj = 

The setup-field:

lib.stdheader.10.stdWrap.wrap = 
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/main.css
page.bodyTag = <body background="Images/tile_bkgrnd.gif">
page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = fileadmin/tmplpage.html
  workOnSubpart = DOCUMENT_BODY
  subparts.CONTENT < styles.content.get
  subparts.MENU = HMENU
  subparts.MENU.minItems = 5
  subparts.MENU.maxItems = 5
  subparts.MENU.1 = TMENU
  subparts.MENU.1.NO {
    allWrap = |*| <td width="120" height="20" bgcolor="black" nowrap> | </td> || <td width="120" height="20" bgcolor="#2f2714" nowrap> | </td> |*|
    linkWrap = <center>|</center>
  }
  subparts.MENU_LEVEL1 = HMENU
  subparts.MENU_LEVEL1.entryLevel = 1
  subparts.MENU_LEVEL1.1 = TMENU
  subparts.MENU_LEVEL1.1.NO {
    allWrap = <tr height="21"><td height="21"> | </td></tr>
  }
  subparts.BOTTOM_MENU = HMENU
  subparts.BOTTOM_MENU.special = directory
  subparts.BOTTOM_MENU.special.value = 10
  subparts.BOTTOM_MENU.1 = TMENU
  subparts.BOTTOM_MENU.1.wrap = <center> | </center>
  subparts.BOTTOM_MENU.1.NO {
    before = &nbsp;|&nbsp;
    after = |*||*| &nbsp;|&nbsp;
  }
}

The flags, that should be set and the included static templates:

The list of records for the page "Startpage". Notice the new template, you've made!