Introduction into using TYPO3 CMS Extensions for Website Templates to provide a central location for code & configuration while integration with tools like Sass, Gulp, PostCSS, Imagemin & Webpack.
│ ├── logo.jpg │ ├── main.html │ ├── site.css │ └── site.js └── site2 ├── index.html ├── logo.jpg ├── main_wide.html ├── site.js └── site2.css It wasn’t me! I only worked on the main template! Websites as a TYPO3 CMS extension Morton Jonuschat 9
to configura?on for users TYPO3 API available File based configura?on Dependencies (ext_emconf.php, composer) Easy deployment & distribu?on Version control² Access protec?on for config files (.htaccess)² Extensions are not indexed by FAL ¹ Not really an advantage ² Possible but difficult for fileadmin/ Websites as a TYPO3 CMS extension Morton Jonuschat 12
of the box 1 Op?onally add them to the New Content Element Wizard 4 Avoid instan?a?ng a full Extbase Controller for simple elements 3 Can use custom database tables if required 2 Websites as a TYPO3 CMS extension Morton Jonuschat 27
the Frontend structure 1 Can be used to automa?cally switch the Frontend template 3 Need a „Provider“ to avoid requiring a database record 2 Websites as a TYPO3 CMS extension Morton Jonuschat 28
not flexible enough 1 Grid elements can be configured purely by TypoScript 3 Avoid the technical debt, see if custom content elements or backend layouts suffice 2 Watch out for your colPos arguments! 4 Websites as a TYPO3 CMS extension Morton Jonuschat 29
been easier 1 Copy bowerized assets to the public directory 4 Integrate frameworks and libraries into the processing step 3 Don’t use bower components directly 2 Websites as a TYPO3 CMS extension Morton Jonuschat 36
a standard and s?ck to it 4 Choose a speedy preprocessor 3 Choose a processor that supports impor?ng pure CSS 2 Websites as a TYPO3 CMS extension Morton Jonuschat 37
to add them 1 Minify CSS for produc?on 4 Include source maps during development 3 Inline assets using base64 encoding 2 Websites as a TYPO3 CMS extension Morton Jonuschat 38
templates) as well as different loaders 1 webpack is awesome in handling this mess 4 Some dependencies come from external sources 3 Legacy JavaScript makes a lot of assump?ons about the environment 2 …and supports babel to transpile ES2015 5 Websites as a TYPO3 CMS extension Morton Jonuschat 39
1 Performance gains can be HUGE! 4 Image op?miza?on is SLOW! 3 Even scalable vector graphics need op?miza?on 2 Websites as a TYPO3 CMS extension Morton Jonuschat 40
hEp:/ /www.jsc.nasa.gov/policies.html#Guidelines 3 CC-‐BY-‐SA 2.0 hEps:/ /crea?vecommons.org/licenses/by-‐sa/2.0/ 2 Websites as a TYPO3 CMS extension Morton Jonuschat 59 Entypo+ Icon Package (hEp:/ /www.entypo.com/), licensed CC-‐BY-‐SA 4.0 hEps:/ /crea?vecommons.org/licenses/by-‐sa/4.0/ 4 Lato Font Family: SIL Open Font License 1.1 Source Code Pro Font Family: Open Font License (OFL) 5