# Make the PAGE object
page = PAGE
page {
  # Regular pages always have typeNum = 0
  typeNum = 0
  
  shortcutIcon = favicon.ico
  
  ##Backend grid view defines body class for css
  bodyTagCObject = CASE
  bodyTagCObject {
    key.field = backend_layout
    key.ifEmpty.data = levelfield:-2, backend_layout_next_level, slide
    
    # Define the default value
    default = TEXT
    default.wrap = <body id="|">
    default.value = default
    
    # Copy the default value to 0
    0 < .default
    1.wrap = <body id="|">
    1.value = content
    
    # Add different values for cases 1, 2 and 3
    1 = TEXT
    1.wrap = <body id="|">
    1.value = start
    
    2 < .1
    2.value = content
    
    3 < .2
    
    4 < .2
  }

  10 = FLUIDTEMPLATE
  10 {
    templateRootPath = {$resDir}/Private/Templates/
    partialRootPath = {$resDir}/Private/Partials/
    layoutRootPath = {$resDir}/Private/Layouts/
    variables {
      content < lib.content
      
      infoLine < styles.content.get
      infoLine.select.where = colPos = 10
      infoLine.slide = -1
  	  contactLine < .infoLine
      contactLine.select.where = colPos = 11
      logo < .infoLine
      logo.select.where = colPos = 12
      teaser < lib.teaser
      quicklinks < styles.content.get
      quicklinks.select.where = colPos = 14
      welcome < styles.content.get
      welcome.select.where = colPos = 15
      news < styles.content.get
      news.select.where = colPos = 16
      footerContact < lib.footerContact
      footerMap < styles.content.get
      footerMap.select.where = colPos = 18
      copyright < .infoLine
      copyright.select.where = colPos = 19
	  

      
      openings < lib.openings
      footer < lib.footer
    }
    
    file.stdWrap.cObject = CASE
    file.stdWrap.cObject {
      key.data = levelfield:-2, backend_layout_next_level, slide
      key.override.field = backend_layout
    
      // Default template
      default = TEXT
      default.value = {$resDir}/Private/Templates/Content.html
    
      // Template file for backend layout with uid 1
      1 = TEXT
      1.value = {$resDir}/Private/Templates/Home.html  
    
      2 = TEXT
      2.value = {$resDir}/Private/Templates/Content.html
    
      3 < .2
    }
  }
}
	  
<INCLUDE_TYPOSCRIPT: source="FILE: ./pageConfig.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: ./pageMeta.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: ./pageHeaderData.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: ./pageIncludeJS.ts">
<INCLUDE_TYPOSCRIPT: source="FILE: ./pageIncludeCSS.ts">