TypoScript - komplette Beispiele

Aus Wikizone
Version vom 31. Juli 2015, 15:30 Uhr von 37.49.33.84 (Diskussion)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

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
|
Wrap um die Jahreszahl im Archiv plugin.tt_news.wrap3.wrap = plugin.tt_news._LOCAL_LANG.de.more = weiterlesen plugin.tt_news._LOCAL_LANG.de.backToList = zurück plugin.tt_news.displayLatest.subheader_stdWrap.crop = 100 | ... | 1 plugin.tt_news.displayList.subheader_stdWrap.crop = 500 | ... | 1 plugin.tt_news._LOCAL_LANG.en.more = more plugin.tt_news._LOCAL_LANG.en.backToList = << back plugin.tt_news.displayList { image { file.maxW = 700 file.maxH = 350 file.width = 700c file.height = 350c } } plugin.tt_news.displaySingle { image { file.maxW = 700 file.maxH = 350 file.width = 700c file.height = 350c } } plugin.tt_news.displayLatest { image { file.maxW = 700 file.maxH = 300 file.width = 700c file.height = 300c } } ### Kategorie Einstellungen ### plugin.tt_news{ // Nur News aus ausgewählten Kategorien (oder) #categoryMode = 1 // Kategorie nicht anzeigen catTextMode = 0 category_stdWrap = | _LOCAL_LANG.de.textCat = _LOCAL_LANG.de.textCatLatest = } ##################################################### ############## NAVIGATION ########################## ##################################################### temp.navi = HMENU temp.navi{ special = directory special.value = 1 #entryLevel = 1 wrap =
    |
1 = TMENU 1 { expAll = 1 noBlur = 1 NO = 1 NO.wrapItemAndSub =
  • |
  • CUR = 1 CUR.wrapItemAndSub =
  • |
  • ACT = 1 ACT < .CUR } 2 = TMENU 2 { wrap =
      |
    noBlur = 1 expAll = 1 NO.wrapItemAndSub =
  • |
  • CUR = 1 CUR.wrapItemAndSub =
  • |
  • ACT = 1 ACT < .CUR } 3 < .2 3.wrap =
      |
    4 < .2 4.wrap =
      |
    } temp.menu = HMENU temp.menu { special = directory special.value = 1 #entryLevel = 1 1 = TMENU 1.noBlur = 1 1.wrap = 1.NO = 1 1.NO.linkWrap =
  • |
  • 1.ACT = 1 1.ACT.linkWrap =
  • |
  • 1.ACTIFSUB = 1 1.ACTIFSUB.linkWrap =
  • |
  • } temp.menu_bottom = HMENU temp.menu_bottom { special = directory special.value = 10 #entryLevel = 1 1 = TMENU 1.noBlur = 1 1.wrap = 1.NO = 1 1.NO.linkWrap =
  • |
  • 1.ACT = 1 1.ACT.linkWrap =
  • |
  • 1.ACTIFSUB = 1 1.ACTIFSUB.linkWrap =
  • |
  • } temp.menu_bottom2 = HMENU temp.menu_bottom2 { special = directory special.value = 13 #entryLevel = 1 1 = TMENU 1.noBlur = 1 1.wrap = 1.NO = 1 1.NO.linkWrap =
  • |
  • 1.ACT = 1 1.ACT.linkWrap =
  • |
  • 1.ACTIFSUB = 1 1.ACTIFSUB.linkWrap =
  • |
  • } temp.menu_top = HMENU temp.menu_top { special = directory special.value = 6 #entryLevel = 1 1 = TMENU 1.noBlur = 1 1.wrap = 1.NO = 1 1.NO.linkWrap =
  • |
  • 1.ACT = 1 1.ACT.linkWrap =
  • |
  • 1.ACTIFSUB = 1 1.ACTIFSUB.linkWrap =
  • |
  • } temp.menu_mobile = HMENU temp.menu_mobile{ special = directory special.value = 1 #entryLevel = 1 wrap =
      |
    1 = TMENU 1 { expAll = 1 noBlur = 1 NO = 1 NO.wrapItemAndSub =
  • |
  • CUR = 1 CUR.wrapItemAndSub =
  • |
  • ACT = 1 ACT < .CUR } 2 = TMENU 2 { wrap =
      |
    noBlur = 1 expAll = 1 NO.wrapItemAndSub =
  • |
  • CUR = 1 CUR.wrapItemAndSub =
  • |
  • ACT = 1 ACT < .CUR } 3 < .2 3.wrap =
      |
    4 < .2 4.wrap =
      |
    } temp.copyright = TEXT temp.copyright { data = date : U strftime = %Y noTrimWrap = | © | GKK Gutachten GmbH | } temp.phone = RECORDS temp.phone { tables = tt_content # Inhaltselement mit ID 42 ist Quelle source = 1 } temp.address = RECORDS temp.address { tables = tt_content # Inhaltselement mit ID 42 ist Quelle source = 2 } temp.social = RECORDS temp.social { tables = tt_content # Inhaltselement mit ID 42 ist Quelle source = 5 } ##################################################### ############## standardsuche ########################## ##################################################### ## Suchfeld [Begin] ## Standartbeschriftung des Buttons ändern tt_content.search.30.dataArray.40.value.data > ## Beschriftung des Buttons auf "Suche" ändern tt_content.search.30.dataArray.40.value = temp.top_search = COA temp.top_search < tt_content.search ## verhindert Anzeige der Suchergebnisse temp.top_search.20 > ## Optionen des Suchformulars der TYPO3 Suche temp.top_search.30 { ## Suchergebnisse im selben Browserfenster anzeigen target = _self ## automatische Auswahl der Zielseite der Suche löschen type > ## Seite 85 als Zielseite der Suche angeben type = 58 ## Auswahl voreinstellen dataArray.20.value = tt_content.header-bodytext-imagecaption ## Feld auf versteckt setzen dataArray.20.type = scols=hidden ## Auswahlmöglichkeit ausblenden dataArray.20.valueArray > ## Suchformular mit SPAN und nicht mit Tabelle wrappen stdWrap.wrap = | layout = ###LABEL### ###FIELD### ## Die Beschriftungen der Inhaltselemente nicht generell wrappen labelWrap.wrap = ## Beschriftung des Eingabefeldes löschen dataArray.10.label > } temp.top_search.stdWrap.wrap = | lib.language = COA lib.language.10 = COA lib.language.10 < temp.top_search ## Suchfeld [End] #------------------------------------------ # Default PAGE object: # ----------------------------------------- page = PAGE page.typeNum = 0 page.shortcutIcon = fileadmin/template/media/favicon.png page.10 = TEMPLATE page.10.template = FILE page.10.template.file = fileadmin/template/main/main.html # FRONTEND Layout Switch [globalVar = TSFE:page|layout = 1] page.10.template.file = fileadmin/template/main/main_70_30.html [global] [globalVar = TSFE:page|layout = 2] page.10.template.file = fileadmin/template/main/main_slider.html [global] [globalVar = TSFE:page|layout = 4] page.10.template.file = fileadmin/template/main/main_50_50.html [global] #Den Subpart DOCUMENT BODY bearbeiten page.10.workOnSubpart = DOCUMENT_BODY #Innerhalb von Documtent Body weitere Subparts bearbeiten page.10.subparts { CONTENT < styles.content.get CONTENT_RIGHT < styles.content.getRight CONTENT_LEFT < styles.content.getLeft CONTENT_BORDER < styles.content.getBorder LOGO < temp.logo NAVI < temp.navi NAVI_MOBILE < temp.menu_mobile NAVI_BOTTOM < temp.menu_bottom NAVI_BOTTOM2 < temp.menu_bottom2 NAVI_TOP < temp.menu_top COPYRIGHT < temp.copyright PHONE < temp.phone ADDRESS < temp.address TOP_SEARCH < temp.top_search SOCIAL < temp.social TEASER < temp.teaser } // inhalte tt_content.stdWrap.innerWrap.cObject.1 > tt_content.stdWrap.innerWrap.cObject.1 = TEXT tt_content.stdWrap.innerWrap.cObject.1.value =
    |
    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 =
      |
    showResultsWrap = | LinksWrap = | browseLinksWrap = | activeLinkWrap =
  • |
  • disabledLinkWrap =
  • |
  • inactiveLinkWrap =
  • |
  • } plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_page = plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_prev = Vorherige plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_next = Nächste plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_first = Erste plugin.tt_news._LOCAL_LANG.de.pi_list_browseresults_last = Letzte /* Anpassungen setup.ts */ tt_content.image.20 { imageStdWrap.dataWrap =
    |
    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 =
    |
    noRowsStdWrap.wrap =
    |
    } ul { imageRowStdWrap.dataWrap =
      |
    imageLastRowStdWrap.dataWrap =
      |
    oneImageStdWrap.dataWrap =
  • |
  • noRowsStdWrap.wrap =
      |
    } div { imageRowStdWrap.dataWrap =
    |
    imageLastRowStdWrap.dataWrap =
    |
    oneImageStdWrap.dataWrap =
    |
    noRowsStdWrap.wrap =
    |
    } simple { imageStdWrap.dataWrap =
    |
    noRowsStdWrap.wrap =
    |
    } } }