Hi!
Habe das Problem, dass ich für den Single View die Deafult newsID nicht setzten kann. Habe veruscht das Handbuch von Seite 57 umzustezen. Leider ohne Erfolg
Vielleicht kann wer mein Setup Script mal ansehen und mir sagen, was da falsch ist!
Danke!
#######################################################
# set the TYPO3 language to german
config.language = de
# set the PHP locale to german
config.locale_all = German_Austria
#######################################################
#Template
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/template/pi-aktuell.htm
workOnSubpart = DOCUMENT_BODY
subparts.normal < styles.content.get
subparts.left < styles.content.getLeft
subparts.right < styles.content.getRight
}
#######################################################
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.stylesheet = fileadmin/css/pi-aktuell.css
#######################################################
# plugin_ttnews
plugin.tt_news {
#template auswählen
templateFile = fileadmin/template/tt_news_template.html
# tt_news date & time formats
archiveTitleCObject {
10.strftime = %B %Y
}
getRelatedCObject {
20.strftime = %d.%m.%Y %H:%M
}
displaySingle {
date_stdWrap.strftime= %d.%m.%Y
time_stdWrap.strftime= %H:%M
}
displayLatest {
date_stdWrap.strftime= %d.%m.%Y
time_stdWrap.strftime= %H:%M
}
displayList {
date_stdWrap.strftime= %A %d. %B %Y
time_stdWrap.strftime= %d.%m.%y %H:%M
}
_LOCAL_LANG.de.noNewsIdMsg =
# set the tt_news singlePid to the current page
plugin.tt_news.singlePid = 3
# fill the content of the maincolumn to a tmp.object
workOnSubpart = DOCUMENT_BODY
tmp.pagecontent < page.10.subparts.normal
# clear the content of the main column
page.10.subparts.normal >
# build a new object for this column as contentobjectarray
page.10.subparts.normal = COA
page.10.subparts.normal {
10 = CONTENT
10.table = tt_news
10.select {
# insert the pids of all pages from where you want to fetch news.
# the recursivefield has no influence on this selection
pidInList = 6
orderBy = datetime desc
max = 1
}
# insert the object “10.” only if there is no SINGLE news selected
10.stdWrap.if.isFalse.data = GPvar:tx_ttnews|tt_news
# reinsert the normal pagecontent to the page
20 < tmp.pagecontent
}
#######################################################