ABooooo
6/1/2015 - 11:51 AM

templating

templating

tmpl.basis = FLUIDTEMPLATE
tmpl.basis {
  partialRootPath = fileadmin/templates/verovis/partials
  layoutRootPath = fileadmin/templates/verovis/layouts
  variables {
        siteName = TEXT
        siteName.value = verovis

        header < styles.content.get
        header.select.where = colPos = 0

        content_main < styles.content.get
        content_main.select.where = colPos = 1
      
        content_front < styles.content.get
        content_front.select.where = colPos = 2
      
        info_boxes < styles.content.get
        info_boxes.select.where = colPos = 3
      
        news < styles.content.get
        news.select.where = colPos = 4
      
        left_column < styles.content.get
        left_column.select.where = colPos = 5
      
        right_column < styles.content.get
        right_column.select.where = colPos = 6

        footer < styles.content.get
        footer.select.where = colPos = 7
    }
}

tmpl.sub < tmpl.basis
tmpl.sub {
  file = fileadmin/templates/verovis/subpage.html
}

tmpl.front < tmpl.basis
tmpl.front {
  file = fileadmin/templates/verovis/frontpage.html
}

tmpl.twoColumns < tmpl.basis
tmpl.twoColumns {
  file = fileadmin/templates/verovis/2column.html
}

tmpl.selection = CASE
tmpl.selection {
  key.field = backend_layout
  key.ifEmpty.data = levelfield:-2, backend_layout_next_level, slide
  
  default = TEXT
  default.value = Kein Backend-Layout ausgewählt
  
  # te stevilke spredaj so pomembne glede na vrstni red v BE - poglej v layout zgoraj desno
  3 =< tmpl.sub
  2 =< tmpl.front
  4 =< tmpl.twoColumns
}

page.10 < tmpl.selection