Advertisement
BerndS59

page_typoscript

Nov 13th, 2020
2,260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // SCB page setup
  2. @import "EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript"
  3.  
  4. page = PAGE
  5. page {
  6.     typeNum = 0
  7.    
  8.     // Favicon laden
  9.         shortcutIcon = typo3conf/ext/site_package/Resources/Public/Icons/favicon.ico
  10.        
  11.     // CSS-style für Browserfenster zuweisen  
  12.         bodyTag = <body id="main_body">
  13.        
  14.     // Meta-Tags definieren
  15.  
  16.     meta {
  17.         viewport = width=device-width, initial-scale=1, shrink-to-fit=no
  18.         AUTHOR = Bernd Sitzmann
  19.         DESCRIPTION = Homepage des Ski-Club-Breitenborn
  20.         }
  21.        
  22.     // Part 1: Fluid template section
  23.     10 = FLUIDTEMPLATE
  24.     10 {
  25. //     templateName = TEXT
  26. //     templateName.stdWrap.cObject = CASE
  27. //     templateName.stdWrap.cObject {
  28. //       key.data = pagelayout
  29.  
  30.         file.stdWrap.cObject = CASE
  31.         file.stdWrap.cObject {
  32.             key.data = pagelayout
  33.  
  34.         pagets__1col = TEXT
  35.         pagets__1col.value = EXT:site_package/Resources/Private/Templates/Page/1col.html
  36.        
  37.         pagets__2col = TEXT
  38.         pagets__2col.value = EXT:site_package/Resources/Private/Templates/Page/2col.html
  39.        
  40.         pagets__3col = TEXT
  41.         pagets__3col.value = EXT:site_package/Resources/Private/Templates/Page/3col.html
  42.        
  43.         pagets__1colslider = TEXT
  44.         pagets__1colslider.value = EXT:site_package/Resources/Private/Templates/Page/1colslider.html
  45.        
  46.         pagets__2colslider = TEXT
  47.         pagets__2colslider.value = EXT:site_package/Resources/Private/Templates/Page/2colslider.html
  48.        
  49.         pagets__gallery = TEXT
  50.         pagets__gallery.value = EXT:site_package/Resources/Private/Templates/Page/gallery.html
  51.        
  52.         pagets__pressreview = TEXT
  53.         pagets__pressreview.value = EXT:site_package/Resources/Private/Templates/Page/pressreview.html
  54.        
  55.         default < .pagets__1col
  56.        }
  57.        
  58.        
  59.        templateRootPaths {
  60.           0 = EXT:site_package/Resources/Private/Templates/Page/
  61. /         1 = {$page.fluidtemplate.templateRootPath}
  62.        }
  63.        partialRootPaths {
  64.           0 = EXT:site_package/Resources/Private/Partials/Page/
  65. /         1 = {$page.fluidtemplate.partialRootPath}
  66.        }
  67.        layoutRootPaths {
  68.           0 = EXT:site_package/Resources/Private/Layouts/Page/
  69. /         1 = {$page.fluidtemplate.layoutRootPath}
  70.        }
  71. // DataProcessing      
  72.         dataProcessing {
  73.             10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
  74.                 10 {
  75.                     as = mainMenu
  76.                     entryLevel = 1
  77.                     expandAll = 1
  78.                     titleField = nav_title // title
  79.                     levels = 4
  80.                 }
  81.             20 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
  82.                 20 {
  83.                     as = metaMenu
  84.  
  85.                     titleField = nav_title // title
  86.                     levels = 1
  87.                     special = directory
  88.                     special.value = {$sitepackage.metaId}
  89.                 }
  90.            
  91.             30 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
  92.                 30 {
  93.                     as = rootline
  94.  
  95.                     titleField = nav_title // title
  96.  
  97.                     special = rootline
  98.                     special.range = 2|-1
  99.                 }
  100.  
  101.          
  102.             40 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
  103.                 40 {
  104.                     special=directory
  105.                     special.value=31
  106.                     levels = 1
  107.         #            includeSpacer = 1
  108.                      as = footernavigation
  109.                 }
  110.            
  111.         }
  112.        
  113.         variables {
  114.             content0 < styles.content.get
  115.                    
  116.             content1 < styles.content.get
  117.             content1.select.where = colPos = 1
  118.            
  119.             content2 < styles.content.get
  120.             content2.select.where = colPos = 2
  121.            
  122.             content3 < styles.content.get
  123.             content3.select.where = colPos = 3
  124.            
  125.             content4 < styles.content.get
  126.             content4.select.where = colPos = 4
  127.            
  128.             content5 < styles.content.get
  129.             content5.select.where = colPos = 5
  130.         }
  131.     }
  132.  
  133.        // Part 2: CSS file inclusion
  134.     includeCSS {
  135.         bootstrap = https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css
  136.         bootstrap.external = 1
  137.         fancybox = EXT:site_package/Resources/Public/Css/jquery.fancybox.min.css
  138.         smartmenus = EXT:site_package/Resources/Public/Css/jquery.smartmenus.bootstrap-4.css
  139. //      main = EXT:site_package/Resources/Public/Css/main.css
  140. //      colorscheme = EXT:site_package/Resources/Public/Css/colorscheme.css
  141.         styles = EXT:site_package/Resources/Public/Css/scb-styles.css
  142.     }
  143.  
  144.        // Part 3: JavaScript file inclusion
  145.        includeJSFooter {
  146.        jquery = https://code.jquery.com/jquery-3.5.1.slim.min.js
  147.        jquery.external = 1
  148.        bootstrap = https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js
  149.        bootstrap.external = 1
  150.        fancybox = EXT:site_package/Resources/Public/JavaScript/jquery.fancybox.min.js
  151.        smartmenus = EXT:site_package/Resources/Public/JavaScript/jquery.smartmenus.min.js
  152.        smartmenusBt = EXT:site_package/Resources/Public/JavaScript/jquery.smartmenus.bootstrap-4.min.js
  153.        scb = EXT:site_package/Resources/Public/JavaScript/scb.js
  154.     }
  155. }
  156.  
  157. // Part 4: global site configuration in 0000_config.typoscript
  158.  
  159. // CKEditor KOnfiguration übernehmen
  160. lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement