TypoScript - komplette Beispiele
Aus Wikizone
Version vom 31. Juli 2015, 15:30 Uhr von 37.49.33.84 (Diskussion)
Gutachtenzentrale 2015
Constants
BASIC
[GLOBAL]
### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_constants.txt"> BEGIN:
#these may be used in real constants field (e.g. if you switch project from production to live server)
#there should be no need to change setup.txt or constants.txt in this extension
#cat=gbt3.template; type=string; label=templatePath: Pfad zu den templates.
templatePath = fileadmin/template/
#cat=gbt3.template; type=string; label = logoLink: Auf diese Seite wird das Logo verlinkt ( Seiten-ID, URL, E-Mail).
logoLink = 2
#cat=gbt3.template; type=string; label = logoFile: Die Datei die als Logo verwendet wird (ausgehend von templatePath).
logoFile = media/logo.png
# tt_news: RSS Feed
plugin.tt_news.useHRDates = 1
plugin.tt_news.pid_list = 8
plugin.tt_news.singlePid = 19
plugin.tt_news.useSubCategories = 1
plugin.tt_news.displaySubCategories = 1
###News###
plugin.tt_news{
useHRDates = 1
limit = 5
latestLimit = 3
# showCatRootline = 0
# wrap2 =
}
### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_constants.txt"> END:
styles.content.mailform {
badMess = Bitte füllen Sie noch folgende Felder aus:
}
plugin.tx_flexslider.persistence.storagePid =
plugin.tx_flexslider {
view {
# Necessary options, if you plan to manipulate the templates
templateRootPath = fileadmin/template/Templates/
}
settings {
# String: File reference to the FlexSlider's Css file - empty this value if you want to include this at your own
css = fileadmin/template/main/flexslider.css
}
}
plugin.tt_news.file.templateFile = fileadmin/template/main/tt_news_v2_template.html
plugin.tt_news.useSubCategories = 1
styles.content.imgtext.maxW = 1400
styles.content.imgtext.maxWInText = 1400
styles.content.imgtext.linkWrap.width = 1400
plugin.tx_jfmulticontent_pi1.jsInFooter = 1
plugin.tx_jfmulticontent_pi1.file.jQueryLibrary =
plugin.tx_jfmulticontent_pi1.file.jQueryUI =
plugin.tx_jfmulticontent_pi1.file.jQueryUIstyle =
Setup
BASIC
[GLOBAL]
### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_setup.txt"> BEGIN:
##################################################
######### main configuration #####################
##################################################
config {
#leave these with live configuration and install abz_developer LOCALLY (not in subversion), it will override this values
debug = 0
admPanel = 0
disablePrefixComment = 1
#pageTitleFirst = 1
extTarget = _blank
// put js and stylesheet into external files automatically
removeDefaultJS = 1
inlineStyle2TempFile = 1
// default language definitions
language = de
locale_all = de_DE
htmlTag_langKey = de
// more properties for multilanguage pages
linkVars = L(1-10)
uniqueLinkVars = 1
sys_language_mode = content_fallback
// for use of several domains in one installation (to be able to use internal links between domain trees)
typolinkCheckRootline = 1
// doctypescwitch: see below, switch only for ie (ie needs switch to make correct display, otherwise no switch to get documents validated)
doctype = xhtml_trans
xhtml_cleaning = all
}
// doctypeswitch - ie only
[browser = msie]
config.doctypeSwitch = 1
[global]
################content_collector########################################
styles.content.getBorder.slide = -1
styles.content.getBorder.slide {
# collect = -1
# collectReverse = 1
}
styles.content.getRight.slide = -1
styles.content.getRight.slide {
# collect = -1
# collectReverse = 1
}
##################################################
######### several marks and subparts #############
##################################################
// Logo mit Link ein
temp.logo = IMAGE
temp.logo {
file = {$templatePath}{$logoFile}
stdWrap.typolink.parameter = {$logoLink}
altText = Startseite
titleText = Startseite
}
temp.teaser = IMAGE
temp.teaser {
file {
import = uploads/media/
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
#############tt news setup########################
# tt_news date & time formats
plugin.tt_news {
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= %d.%m.%y
time_stdWrap.strftime= %H:%M
}
}
plugin.tt_news.displaySingle.image.imageLinkWrap.width = 800m
plugin.tt_news.displaySingle.image.imageLinkWrap.height = 600m
#plugin.tt_news.displaySingle.image.imageLightbox2 = 1
#plugin.perfectlightbox.ttnews.enableSingle = 1
plugin.tt_news.displayList.subheader_stdWrap.append >
plugin.tt_news.newsFiles.target = _blank
# Entfernen des - |
- |
- |
- |
- |
- |
- |
|
tt_content.stdWrap.innerWrap.cObject.5 >
tt_content.stdWrap.innerWrap.cObject.5 = TEXT
tt_content.stdWrap.innerWrap.cObject.5.value = |
tt_content.stdWrap.innerWrap.cObject.6 >
tt_content.stdWrap.innerWrap.cObject.6 = TEXT
tt_content.stdWrap.innerWrap.cObject.6.value = |
tt_content.stdWrap.innerWrap.cObject.10 >
tt_content.stdWrap.innerWrap.cObject.10 = TEXT
tt_content.stdWrap.innerWrap.cObject.10.value = |
tt_content.stdWrap.innerWrap.cObject.11 >
tt_content.stdWrap.innerWrap.cObject.11 = TEXT
tt_content.stdWrap.innerWrap.cObject.11.value = |
tt_content.stdWrap.innerWrap.cObject.12 >
tt_content.stdWrap.innerWrap.cObject.12 = TEXT
tt_content.stdWrap.innerWrap.cObject.12.value = |
tt_content.stdWrap.innerWrap.cObject.20 >
tt_content.stdWrap.innerWrap.cObject.20 = TEXT
tt_content.stdWrap.innerWrap.cObject.20.value = |
tt_content.stdWrap.innerWrap.cObject.21 >
tt_content.stdWrap.innerWrap.cObject.21 = TEXT
tt_content.stdWrap.innerWrap.cObject.21.value = |
### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_setup.txt"> END:
lib.stdheader.10.setCurrent.htmlSpecialChars = 0
page.headerData.20 = TEXT
page.headerData.20.value (
<script src="fileadmin/template/js/ext.js" type="text/javascript"></script>
<script src="fileadmin/template/js/hoverIntent.js" type="text/javascript"></script>
<script src="fileadmin/template/js/superfish.js" type="text/javascript"></script>
<script src="fileadmin/template/js/supersubs.js" type="text/javascript"></script>
<script src="fileadmin/template/js/jquery.mmenu.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(function() {
$('nav#menu').mmenu();
});
});
</script>
)
# Stylesheets
page.includeCSS {
file10 = fileadmin/template/main/main.css
file20 = fileadmin/template/main/superfish.css
file30 = fileadmin/template/main/tt_news_v2_styles.css
file40 = fileadmin/template/main/jquery-ui.css
file50 = fileadmin/template/main/media_queries.css
file60 = fileadmin/template/main/jquery.mmenu.css
}
page.meta {
KEYWORDS.field = keywords
KEYWORDS.ifEmpty =
DESCRIPTION.field = description
DESCRIPTION.ifEmpty =
VIEWPORT = width=device-width; initial-scale=1.0
}
#config.baseURL = http://www.ksclearning.de.de/
#// cooluri aktivieren und simulatestatic deaktivieren
#config.simulateStaticDocuments = 0
#config.tx_cooluri_enable = 1
#config.redirectOldLinksToNew = 1
tt_content.search.30.target = _self
tt_content.search.30.dataArray.10.label >
# Suchfelderauswahl wird versteckt und Suche ist auf header, bodytext und imagecaption eingestellt
tt_content.search.30.dataArray.20.type = scols=hidden
tt_content.search.30.dataArray.20.valueArray >
tt_content.search.30.dataArray.20.value = tt_content.header-bodytext-imagecaption
# Inputfeldgröße wird eingestellt und CSS-Klasse wird zugeordnet
tt_content.search.30.params.input = class="suchfeld" size="40"
# Submit Button wird eine CSS-Klasse und die Bezeichnung zugeordnet
tt_content.search.30.params.submit = class="suchbutton"
tt_content.search.30.dataArray.40.value = Suchen
# Layout aus Tabelle genommen
tt_content.search.30.stdWrap.wrap = |
tt_content.search.30.layout = ###LABEL### ###FIELD###
tt_content.search.30.COMMENT.layout = ###LABEL###
plugin.tt_news.dontUseBackPid = 0
plugin.tt_news.sys_language_mode = strict
plugin.tt_news.excludeAlreadyDisplayedNews = 0
plugin.tt_news.usePiBasePagebrowser = 1
plugin.tt_news.displayLatest.subheader_stdWrap.br = 1
plugin.tt_news.displayList.subheader_stdWrap.br = 1
plugin.tt_news.pageBrowser {
maxPages = 20
showResultCount = 0
showPBrowserText = 1
dontLinkActivePage = 1
showFirstLast = 1
pagefloat = center
showRange = 0
hscText = 1
browseBoxWrap = - |
|
imageColumnStdWrap.dataWrap = |
layout {
25.value = ###IMAGES######TEXT###
26.value = ###IMAGES######TEXT###
}
/* Rendering-Varianten, die mit tt_content.image.20.renderMethod gesetzt werden */
rendering {
dl {
imageRowStdWrap.dataWrap = |
imageLastRowStdWrap.dataWrap = |
oneImageStdWrap.dataWrap = - |
|
}
ul {
imageRowStdWrap.dataWrap = - |
- |
- |
|
imageLastRowStdWrap.dataWrap = |
oneImageStdWrap.dataWrap = |
noRowsStdWrap.wrap = |
}
simple {
imageStdWrap.dataWrap = |
noRowsStdWrap.wrap = |
}
}
}