/**
 * Link Frontend-Template to Backendlayout
 *
 */
lib.subTemplateArea = TEMPLATE
lib.subTemplateArea {
	template = FILE
	template.file.cObject = RECORDS
	template.file.cObject {
		source.data = TSFE:page|be_layout
		tables = tx_modernbe_layouts
		conf.tx_modernbe_layouts = TEXT
		conf.tx_modernbe_layouts.field = template
		conf.tx_modernbe_layouts.wrap = fileadmin/templates/pagetemplates/sub/
	}
	workOnSubpart = DOCUMENT_BODY
	marks {
		TEASER < lib.teaser
		LEFTCOLUMN < lib.leftColumn
		MAINCOLUMN < lib.mainColumn
		RIGHTCOLUMN < lib.rightColumn
	}
}


/**
 * Get Main-Frontend-Template
 *
 */
lib.template = TEMPLATE
lib.template {
	template = FILE
	template.file = fileadmin/templates/pagetemplates/main/default.html
	workOnSubpart = DOCUMENT
	marks {
		LOGO < lib.logo
		SERVICENAVIGATION < lib.serviceNavigation
		SUB_TEMPLATE_AREA < lib.subTemplateArea
		FOOTER < lib.footer
	}
}

page = PAGE
page {
	typeNum = 0
	10 < lib.template	
}