Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PAGE_TS for Layout Select box for the FE templates
- TCEFORM.pages {
- #layout.altLabels.3 = New_other_templates
- layout.altLabels.2 = EquipmentTemplate
- layout.altLabels.1 = MainTemplate
- layout.altLabels.0 = DefaultTemplate
- removeItems = 4,5,6,7,8,9,10
- }
- TS CONFIG FLUID TEMPLATE
- ###########################################
- ####### Config Fluid Template #############
- page = PAGE
- page.typeNum = 0
- page.10 = FLUIDTEMPLATE
- page.10{
- #Path to the template files stored in extension
- partialRootPath = {$resDir}/Private/Partials
- layoutRootPath = {$resDir}/Private/Layouts
- file.cObject = CASE
- file.cObject {
- key.data = levelfield:-2, backend_layout_next_level, slide
- key.override.field = backend_layout
- #default template
- default = TEXT
- default.value = {$resDir}/Private/Templates/DefaultTemplate.html
- #Default template
- pagets__1 = TEXT
- pagets__1.value = {$resDir}/Private/Templates/Main_Template.html
- #Second template
- pagets__2 = TEXT
- pagets__2.value = {$resDir}/Private/Templates/Eq_Template.html
- #Third template
- #pagets__3 = TEXT
- #pagets__3.value = {$resDir}/Private/Templates/New_Other_Template.html
- }
- #Here some variables for use in the template by using {}
- variables {
- siteName = TEXT
- siteName.value = SiteName
- pageTitle = TEXT
- pageTitle.data = page:title
- ########
- #get the content into the template:
- content < styles.content.get
- #Maincontent
- content_main < styles.content.get
- content_main.select.where = colPos = 0
- #Content Colom 1
- content_column_1 < styles.content.get
- content_column_1.select.where = colPos = 1
- #Content Colom 2
- content_column_2 < styles.content.get
- content_column_2.select.where = colPos = 2
- #more columns and colPos here if needed
- }
- }
- And the PageTS for the BE
- ### Backend Layouts
- mod.web_layout.BackendLayouts{
- #template for default pages
- 1 {
- title = Default Template
- config {
- backend_layout {
- colCount = 1
- rowCount = 1
- rows {
- 1 {
- columns {
- 1 {
- name = Main Content
- colPos = 0
- }
- }
- }
- }
- }
- }
- }
- #template for main pages
- 2 {
- title = Main Template
- config {
- backend_layout {
- colCount = 1
- rowCount = 1
- rows {
- 1 {
- columns {
- 1 {
- name = Main Content
- colPos = 0
- }
- }
- }
- }
- }
- }
- }
- #template for equipment pages
- 3 {
- title = Equipment Template
- config {
- backend_layout {
- colCount = 1
- rowCount = 1
- rows {
- 1 {
- columns {
- 1 {
- name = Main Content
- colPos = 0
- }
- }
- }
- }
- }
- }
- }
- #end of the BE templates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement