TypoScript - komplette Beispiele
Aus Wikizone
Version vom 31. Juli 2015, 15:29 Uhr von 37.49.33.84 (Diskussion)
Gutachtenzentrale 2015
Path: / root [1]
Template tools
Current template
BASIC (GKK Gutachten GmbH)
Template hierarchy
Title Rootlevel Clear Setup Clear Constants PID Rootline Next Level
SYS:TYPO3_CONF_VARS:FE:defaultTypoScript
EXT:css_styled_content/static/
EXT:gbmaps/Configuration/TypoScript
EXT:flexslider/Configuration/TypoScript
EXT:tt_news/pi/static/ts_new/
EXT:jfmulticontent/static/
EXT:jh_magnificpopup/Configuration/TypoScript/Defa...
extensionmanager
extbase
fluid
belog
beuser
felogin
sys_note
powermail
BASIC 1 0
Complete TS
Display Options
Line numbers Syntax highlight
Constants
BASIC
577: [GLOBAL]
578:
579: ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_constants.txt"> BEGIN:
580: #these may be used in real constants field (e.g. if you switch project from production to live server)
581: #there should be no need to change setup.txt or constants.txt in this extension
582:
583:
584:
585: #cat=gbt3.template; type=string; label=templatePath: Pfad zu den templates.
586: templatePath = fileadmin/template/
587:
588: #cat=gbt3.template; type=string; label = logoLink: Auf diese Seite wird das Logo verlinkt ( Seiten-ID, URL, E-Mail).
589: logoLink = 2
590:
591: #cat=gbt3.template; type=string; label = logoFile: Die Datei die als Logo verwendet wird (ausgehend von templatePath).
592: logoFile = media/logo.png
593:
594:
595: # tt_news: RSS Feed
596: plugin.tt_news.useHRDates = 1
597: plugin.tt_news.pid_list = 8
598: plugin.tt_news.singlePid = 19
599: plugin.tt_news.useSubCategories = 1
600: plugin.tt_news.displaySubCategories = 1
601:
602: ###News###
603: plugin.tt_news{
604:
605: useHRDates = 1
606: limit = 5
607: latestLimit = 3
608: # showCatRootline = 0
609: # wrap2 =
610:
611: }
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627: ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_constants.txt"> END:
628:
629:
630:
631: styles.content.mailform {
632: badMess = Bitte füllen Sie noch folgende Felder aus:
633: }
634: plugin.tx_flexslider.persistence.storagePid =
635:
636: plugin.tx_flexslider {
637: view {
638: # Necessary options, if you plan to manipulate the templates
639: templateRootPath = fileadmin/template/Templates/
640: }
641:
642: settings {
643: # String: File reference to the FlexSlider's Css file - empty this value if you want to include this at your own
644: css = fileadmin/template/main/flexslider.css
645: }
646: }
647:
648: plugin.tt_news.file.templateFile = fileadmin/template/main/tt_news_v2_template.html
649: plugin.tt_news.useSubCategories = 1
650: styles.content.imgtext.maxW = 1400
651: styles.content.imgtext.maxWInText = 1400
652: styles.content.imgtext.linkWrap.width = 1400
653: plugin.tx_jfmulticontent_pi1.jsInFooter = 1
654: plugin.tx_jfmulticontent_pi1.file.jQueryLibrary =
655: plugin.tx_jfmulticontent_pi1.file.jQueryUI =
656: plugin.tx_jfmulticontent_pi1.file.jQueryUIstyle =
657:
Setup
BASIC
4609: [GLOBAL]
4610:
4611: ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_setup.txt"> BEGIN:
4612: ##################################################
4613: ######### main configuration #####################
4614: ##################################################
4615:
4616: config {
4617: #leave these with live configuration and install abz_developer LOCALLY (not in subversion), it will override this values
4618: debug = 0
4619: admPanel = 0
4620: disablePrefixComment = 1
4621:
4622: #pageTitleFirst = 1
4623:
4624:
4625: extTarget = _blank
4626:
4627: // put js and stylesheet into external files automatically
4628: removeDefaultJS = 1
4629: inlineStyle2TempFile = 1
4630:
4631:
4632: // default language definitions
4633: language = de
4634: locale_all = de_DE
4635: htmlTag_langKey = de
4636:
4637: // more properties for multilanguage pages
4638: linkVars = L(1-10)
4639: uniqueLinkVars = 1
4640: sys_language_mode = content_fallback
4641:
4642: // for use of several domains in one installation (to be able to use internal links between domain trees)
4643: typolinkCheckRootline = 1
4644: // doctypescwitch: see below, switch only for ie (ie needs switch to make correct display, otherwise no switch to get documents validated)
4645: doctype = xhtml_trans
4646: xhtml_cleaning = all
4647: }
4648:
4649: // doctypeswitch - ie only
4650: [browser = msie]
4651: config.doctypeSwitch = 1
4652: [global]
4653:
4654:
4655:
4656: ################content_collector########################################
4657: styles.content.getBorder.slide = -1
4658: styles.content.getBorder.slide {
4659: # collect = -1
4660: # collectReverse = 1
4661: }
4662:
4663: styles.content.getRight.slide = -1
4664: styles.content.getRight.slide {
4665: # collect = -1
4666: # collectReverse = 1
4667: }
4668:
4669:
4670:
4671:
4672: ##################################################
4673: ######### several marks and subparts #############
4674: ##################################################
4675:
4676: // Logo mit Link ein
4677: temp.logo = IMAGE
4678: temp.logo {
4679: file = {$templatePath}{$logoFile}
4680: stdWrap.typolink.parameter = {$logoLink}
4681: altText = Startseite
4682: titleText = Startseite
4683: }
4684:
4685:
4686: temp.teaser = IMAGE
4687: temp.teaser {
4688: file {
4689: import = uploads/media/
4690: import.data = levelmedia:-1, slide
4691: treatIdAsReference = 1
4692: import.listNum = 0
4693: }
4694: }
4695:
4696: #############tt news setup########################
4697:
4698: # tt_news date & time formats
4699: plugin.tt_news {
4700: archiveTitleCObject {
4701: 10.strftime = %B - %Y
4702: }
4703: getRelatedCObject {
4704: 20.strftime = %d.%m.%Y %H:%M
4705: }
4706: displaySingle {
4707: date_stdWrap.strftime= %d.%m.%y
4708: time_stdWrap.strftime= %H:%M
4709: }
4710: displayLatest {
4711: date_stdWrap.strftime= %d.%m.%y
4712: time_stdWrap.strftime= %H:%M
4713: }
4714: displayList {
4715: date_stdWrap.strftime= %d.%m.%y
4716: time_stdWrap.strftime= %H:%M
4717: }
4718: }
4719:
4720: plugin.tt_news.displaySingle.image.imageLinkWrap.width = 800m
4721: plugin.tt_news.displaySingle.image.imageLinkWrap.height = 600m
4722:
4723: #plugin.tt_news.displaySingle.image.imageLightbox2 = 1
4724: #plugin.perfectlightbox.ttnews.enableSingle = 1
4725: plugin.tt_news.displayList.subheader_stdWrap.append >
4726:
4727:
4728: plugin.tt_news.newsFiles.target = _blank
4729:
4730: # Entfernen des - |
- |
- |
- |
- |
- |
- |
|
5082:
5083: tt_content.stdWrap.innerWrap.cObject.5 >
5084: tt_content.stdWrap.innerWrap.cObject.5 = TEXT
5085: tt_content.stdWrap.innerWrap.cObject.5.value = |
5086:
5087:
5088: tt_content.stdWrap.innerWrap.cObject.6 >
5089: tt_content.stdWrap.innerWrap.cObject.6 = TEXT
5090: tt_content.stdWrap.innerWrap.cObject.6.value = |
5091:
5092: tt_content.stdWrap.innerWrap.cObject.10 >
5093: tt_content.stdWrap.innerWrap.cObject.10 = TEXT
5094: tt_content.stdWrap.innerWrap.cObject.10.value = |
5095:
5096: tt_content.stdWrap.innerWrap.cObject.11 >
5097: tt_content.stdWrap.innerWrap.cObject.11 = TEXT
5098: tt_content.stdWrap.innerWrap.cObject.11.value = |
5099:
5100: tt_content.stdWrap.innerWrap.cObject.12 >
5101: tt_content.stdWrap.innerWrap.cObject.12 = TEXT
5102: tt_content.stdWrap.innerWrap.cObject.12.value = |
5103:
5104: tt_content.stdWrap.innerWrap.cObject.20 >
5105: tt_content.stdWrap.innerWrap.cObject.20 = TEXT
5106: tt_content.stdWrap.innerWrap.cObject.20.value = |
5107:
5108:
5109: tt_content.stdWrap.innerWrap.cObject.21 >
5110: tt_content.stdWrap.innerWrap.cObject.21 = TEXT
5111: tt_content.stdWrap.innerWrap.cObject.21.value = |
5112:
5113:
5114:
5115:
5116:
5117:
5118:
5119:
5120:
5121:
5122:
5123:
5124:
5125:
5126:
5127: ### <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/template/ext_typoscript_setup.txt"> END:
5128:
5129:
5130:
5131: lib.stdheader.10.setCurrent.htmlSpecialChars = 0
5132:
5133: page.headerData.20 = TEXT
5134: page.headerData.20.value (
5135: <script src="fileadmin/template/js/ext.js" type="text/javascript"></script>
5136: <script src="fileadmin/template/js/hoverIntent.js" type="text/javascript"></script>
5137: <script src="fileadmin/template/js/superfish.js" type="text/javascript"></script>
5138: <script src="fileadmin/template/js/supersubs.js" type="text/javascript"></script>
5139: <script src="fileadmin/template/js/jquery.mmenu.min.js" type="text/javascript"></script>
5140:
5141: <script type="text/javascript">
5142: $(document).ready(function() {
5143: $(function() {
5144: $('nav#menu').mmenu();
5145: });
5146: });
5147: </script>
5148:
5149: )
5150:
5151:
5152: # Stylesheets
5153: page.includeCSS {
5154: file10 = fileadmin/template/main/main.css
5155: file20 = fileadmin/template/main/superfish.css
5156: file30 = fileadmin/template/main/tt_news_v2_styles.css
5157: file40 = fileadmin/template/main/jquery-ui.css
5158: file50 = fileadmin/template/main/media_queries.css
5159: file60 = fileadmin/template/main/jquery.mmenu.css
5160: }
5161:
5162:
5163: page.meta {
5164: KEYWORDS.field = keywords
5165: KEYWORDS.ifEmpty =
5166: DESCRIPTION.field = description
5167: DESCRIPTION.ifEmpty =
5168: VIEWPORT = width=device-width; initial-scale=1.0
5169: }
5170:
5171: #config.baseURL = http://www.ksclearning.de.de/
5172: #// cooluri aktivieren und simulatestatic deaktivieren
5173: #config.simulateStaticDocuments = 0
5174: #config.tx_cooluri_enable = 1
5175: #config.redirectOldLinksToNew = 1
5176:
5177: tt_content.search.30.target = _self
5178: tt_content.search.30.dataArray.10.label >
5179:
5180: # Suchfelderauswahl wird versteckt und Suche ist auf header, bodytext und imagecaption eingestellt
5181: tt_content.search.30.dataArray.20.type = scols=hidden
5182: tt_content.search.30.dataArray.20.valueArray >
5183: tt_content.search.30.dataArray.20.value = tt_content.header-bodytext-imagecaption
5184:
5185: # Inputfeldgröße wird eingestellt und CSS-Klasse wird zugeordnet
5186: tt_content.search.30.params.input = class="suchfeld" size="40"
5187:
5188: # Submit Button wird eine CSS-Klasse und die Bezeichnung zugeordnet
5189: tt_content.search.30.params.submit = class="suchbutton"
5190: tt_content.search.30.dataArray.40.value = Suchen
5191:
5192: # Layout aus Tabelle genommen
5193: tt_content.search.30.stdWrap.wrap = |
5194: tt_content.search.30.layout = ###LABEL### ###FIELD###
5195: tt_content.search.30.COMMENT.layout = ###LABEL###
5196:
5197:
5198: plugin.tt_news.dontUseBackPid = 0
5199: plugin.tt_news.sys_language_mode = strict
5200: plugin.tt_news.excludeAlreadyDisplayedNews = 0
5201: plugin.tt_news.usePiBasePagebrowser = 1
5202: plugin.tt_news.displayLatest.subheader_stdWrap.br = 1
5203: plugin.tt_news.displayList.subheader_stdWrap.br = 1
5204:
5205: plugin.tt_news.pageBrowser {
5206: maxPages = 20
5207: showResultCount = 0
5208: showPBrowserText = 1
5209: dontLinkActivePage = 1
5210:
5211: showFirstLast = 1
5212: pagefloat = center
5213: showRange = 0
5214: hscText = 1
5215:
5216: browseBoxWrap = - |
|
5234: imageColumnStdWrap.dataWrap = |
5235: layout {
5236: 25.value = ###IMAGES######TEXT###
5237: 26.value = ###IMAGES######TEXT###
5238: }
5239: /* Rendering-Varianten, die mit tt_content.image.20.renderMethod gesetzt werden */
5240: rendering {
5241: dl {
5242: imageRowStdWrap.dataWrap = |
5243: imageLastRowStdWrap.dataWrap = |
5244: oneImageStdWrap.dataWrap = - |
|
5246: }
5247: ul {
5248: imageRowStdWrap.dataWrap = - |
- |
- |
|
5255: imageLastRowStdWrap.dataWrap = |
5256: oneImageStdWrap.dataWrap = |
5257: noRowsStdWrap.wrap = |
5258: }
5259: simple {
5260: imageStdWrap.dataWrap = |
5261: noRowsStdWrap.wrap = |
5262: }
5263: }
5264: }
5265:
5266:
5267:
5268: