Coder Social home page Coder Social logo

typo3-documentation / typo3cms-tutorial-templating Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 29.0 1.73 MB

Step-by-step Tutorial about templating in TYPO3 using Fluid & TypoScript (newer versions) or TypoScript (older versions).

fluidtemplate templating typoscript tutorial typo3 typo3-documentation

typo3cms-tutorial-templating's Introduction

typo3cms-tutorial-templating's People

Contributors

alexander-nitsche avatar alhuo-smile avatar andrewmurphy2 avatar auge avatar danielsiepmann avatar danwin avatar dorozhko-anton avatar fsuter avatar indyindyindy avatar linawolf avatar lolli42 avatar marble avatar mazorius avatar primeos avatar spoonerweb avatar susannemoog avatar svenwiener avatar sypets avatar timotheonb avatar tomwarwick avatar xperseguers avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

typo3cms-tutorial-templating's Issues

Provide good and secure Fluid examples

Misleading, insecure content

https://github.com/TYPO3-Documentation/TYPO3CMS-Tutorial-Templating/blame/10.4/Documentation/BasicFluidTemplates/Index.rst#L167

  • using f:format.htmlEntitiesDecode on user-submitted content, that has been encoded already (styles.content.get) is potentially insecure
  • in this case it probably might be better using f:format.raw (take data as-is, given it has been encoded for HTML before - otherwise again security implications)
  • see https://typo3.org/security/advisory/typo3-ext-sa-2021-007 as a reference (it's not 100% the same here, but similar)

Provide good examples on how to use Fluid

  • mention all contexts and use-cases
    • regular "scalar" values
    • nested content rendering (like above, double encoded content)
    • special handling, e.g. "(only) allow line-break & transform to HTML" in values
    • special handling, e.g. "(only) allow <i>, <b>" in values
  • explain scenarios
  • provide good (complete) examples - show input data, show output data

Fluid Toolbox

  • <f:format.raw>
  • <f:format:html [parseFuncTSPath="..."]>
  • <f:format.htmlSpecialChars [doubleEncode="true"]>
  • <f:format.htmlEntitiesDecode>
  • plain {variable}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.