Ich habe mir eine Art Druckansicht gebastelt. In dieser möchte ich 1. nur die Spalte "Normal" anzeigen (soweit kein Problem) und 2. dort nur das dritte Inhaltselement. Irgendwer hier im Forum hat mir mal gesagt, daß würde gehen.
Die Frage ist: WIE? 😉
Ich poste mal, was ich an Code bisher habe:
########################################
# HAENDLER ANSICHT
########################################
haendler = PAGE
haendler.typeNum = 50
haendler.stylesheet = fileadmin/templates/akoodoo/css/print.css
haendler.10 = TEMPLATE
haendler.10 {
template = FILE
template.file = fileadmin/templates/akoodoo/print.html
workOnSubpart = DOCUMENT_BODY
subparts {
CONTENT < styles.content.get
}
marks {
TOPLOGO = IMAGE
TOPLOGO.file = {$akoodoo_logo.value}
COPYRIGHT = TEXT
COPYRIGHT.value = {$akoodoo_copyright.value}
}
}
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
select.languageField = sys_language_uid
select.begin = 3
select.max = 1
Anstatt styles.content.get
Ohne Gewähr
Super! Danke dir. Mußte noch ein wenig fummeln, aber jetzt klappt es. Wichtig dabei ist, daß "select.begin" bei 0 anfängt zu zählen. Wenn man das dritte Element haben will, muss man hier also eine 2 eintragen. Hier mal mein vollständiger Code:
########################################
# HAENDLER ANSICHT
########################################
haendler = PAGE
haendler.typeNum = 50
haendler.stylesheet = fileadmin/templates/akoodoo/css/print.css
haendler.10 = TEMPLATE
haendler.10 {
template = FILE
template.file = fileadmin/templates/akoodoo/print.html
workOnSubpart = DOCUMENT_BODY
subparts {
CONTENT = CONTENT
CONTENT {
table = tt_content
select {
orderBy = sorting
where = colPos = 0
languageField = sys_language_uid
begin = 3
max = 1
}
}
}
marks {
TOPLOGO = IMAGE
TOPLOGO.file = {$akoodoo_logo.value}
COPYRIGHT = TEXT
COPYRIGHT.value = {$akoodoo_copyright.value}
}
}