Zum Inhalt springen

ColPos Problem

Erstellt am 12. Juni 2015 · 1 Antwort · letzte Antwort am 12. Juni 2015

Tags: Frage

simon29 ·

Hallo,

ich habe ein folgendes Problem ich möchte meinen Footer Dynamische auf der Root Seite vererben. Ich habe ein Backend Layout ( ColPos = 0) und dann noch 4 CE Backend Layouts: einspaltig, zweispaltig,dreispaltig und eins für den Footer.

Hier ist mein TypoScript:

FluidTemplate = FLUIDTEMPLATE
FluidTemplate {
    file = fileadmin/template/private/einspaltig.html
    layoutRootPath = fileadmin/template/private/layout
    partialRootPath = fileadmin/template/private/partials

    variables {
        inhalt < styles.content.get
        inhalt.select.where = colPos = 0
        footer < styles.content.getFooter
        footer.select.where = colPos = 41
        footer.slide = -1
    }


}

    page = PAGE
    page {
    config {
        doctype = xhtml_trans
        disablePrefixComment = 1
    }





    typeNum = 0

    includeCSS.style = fileadmin/template/css/main.css

    10 < FluidTemplate

    }

Der Footer besitzt die ColPos 41. Mein Problem ist ich komme nicht an die Inhalte ran, die direkt in den CE Backend Layouts liegen an das Backend Layout, dass die CE Backend Layouts umschließt bekomme ich ausgegeben. Gleiche herangehensweise, aber mein Typoscript greift nicht.

backend_layout {
	colCount = 1
	rowCount = 1
	rows {
		1 {
			columns {
				1 {
					name = Footer
					colPos = 41
				}
			}
		}
	}
}


backend_layout {
	colCount = 3
	rowCount = 1
	rows {
		1 {
			columns {
				1 {
					name = Spalte-1
					colPos = 31
				}
				2 {
					name = Spalte-2
					colPos = 32
				}
				3 {
					name = Spalte-3
					colPos = 33
				}
			}
		}
	}
}

backend_layout {
	colCount = 2
	rowCount = 1
	rows {
		1 {
			columns {
				1 {
					name = Spalte-1
					colPos = 21
				}
				2 {
					name = Spalte-2
					colPos = 22
				}
			}
		}
	}
}



backend_layout {
	colCount = 1
	rowCount = 1
	rows {
		1 {
			columns {
				1 {
					name = Inhalt
					colPos = 11
				}
			}
		}
	}
}
toifel ·

Ich schätze mal, dass du "CE Backend Layout" in Zusammenhang mit Gridelements benutzt?
In diesem Fall kann es so nicht funktionieren, da die Datensätze in der Datenbank nicht die colPos besitzen, die du brauchst. Datensätze innerhalb eines Grids haben immer die colPos -1, die korrekte ID (die du bräuchtest) wird im Feld tx_gridelements_columns gespeichert.