[TYPO3-german] dateien einbinden
michael bogensperger
m.bogensperger at agentur-zb.de
Fri Jun 28 11:19:40 CEST 2013
hi leuts
wie kann man bei ts dateien einbinden.
hab mein ts soweit fertig, möchte jetzt den teil mit der navi in eine datei auslagern (dateiname : navigation.tmp).
habs mal so probiert :
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/template/Milvi_Reiki/navigation.tmp
10.workOnSubpart = DOKUMENT
das funktioniert leider nicht .
hier mal mein komplettes ts:
page = PAGE
page {
typeNum = 0
# Stylesheets
includeCSS {
file1 = fileadmin/template/Milvi_Reiki/css/style2.css
file1.media = screen
file2 = fileadmin/template/Milvi_Reiki/css/slider.css
file2.media = screen
}
meta.AUTHOR = Michael Bogensperger
meta.DESCRIPTION = Alles über Reiki
# JavaScript
headerData.10 = TEXT
headerData.10.value = <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
headerData.20 = TEXT
headerData.20.value = <script type="text/javascript" src="fileadmin/template/Milvi_Reiki/jscript/jquery.cycle.all.js"></script>
headerData.30 = TEXT
headerData.30.value = <script type="text/javascript" src="fileadmin/template/Milvi_Reiki/jscript/openmenu.js"></script>
headerData.40 = TEXT
headerData.40.value = <script type="text/javascript" src="fileadmin/template/Milvi_Reiki/jscript/change_color.js"></script>
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/template/Milvi_Reiki/index.html
10.workOnSubpart = DOKUMENT
10.marks {
STATEMENT = CONTENT
STATEMENT {
table = tt_content
select {
orderBy = sorting
where = colPos = 2
}
renderObj = TEXT
renderObj.field = bodytext
renderObj.wrap = <div id="slider_text"> | </div>
}
CONTENT_HEAD = CONTENT
CONTENT_HEAD {
table = tt_content
select {
orderBy = sorting
where = colPos = 0
}
renderObj = TEXT
renderObj.field = header
}
CONTENT_MAIN = CONTENT
CONTENT_MAIN {
table = tt_content
select {
orderBy = sorting
where = colPos = 0
}
renderObj = TEXT
renderObj.field = bodytext
renderObj.wrap = | <br><br>
}
SLIDER_IMAGES = CONTENT
SLIDER_IMAGES {
table = tt_content
select {
orderBy = sorting
where = colPos = 1
}
renderObj = COA
renderObj {
1 = IMAGE
1.file.import = uploads/pics/
1.file.import.field = image
1.file.width = 600c
1.file.height = 300c
}
}
######################HIER WILL ICH DIE DATEI EINBETTEN ###########################
}
}
folgendes ist in der navigation.tmp gespeichert :
MENU_OBEN = HMENU
MENU_OBEN {
special = directory
special.value = 51
1 = TMENU
1.NO = 1
1.NO.linkWrap = <div class="navi_pos">|</div> || <div class="navi_pos" onmouseover="openmenu(1)" onmouseout="closemenu(1)" >|</div> || <div class="navi_pos" onmouseover="openmenu(2)" onmouseout="closemenu(2)">|</div> || <div class="navi_pos">|</div> || <div class="navi_pos">|</div> || <div class="navi_pos">|</div>
}
UNTERMENU_1 = HMENU
UNTERMENU_1 {
special = directory
special.value = 55
1 = TMENU
1.NO = 1
1.NO.linkWrap = <div class="listpoint"> | </div>
}
UNTERMENU_2 = HMENU
UNTERMENU_2 {
special = directory
special.value = 56
1 = TMENU
1.NO = 1
1.NO.linkWrap = <div class="listpoint"> | </div>
}
gruss micha
More information about the TYPO3-german
mailing list