【问题标题】:TYPO3: Printing variables in HTML5 via Fluid does not workTYPO3:通过 Fluid 在 HTML5 中打印变量不起作用
【发布时间】:2014-09-24 16:07:08
【问题描述】:

我正在使用 Typo3(6.2) 我在 html5 文件中显示我的打字稿变量时遇到问题。

<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
    </head>

    <body>
     ....
        <p>{content_test -> f:format.raw()}</p>
     ....
    </body>   
</html>

我的打字稿:

page = PAGE
page {
 config.doctype = html5
 config.xmlprologue = none

10 = FILE
10.file = index.html  
}

fluidTemplate = FLUIDTEMPLATE
fluidTemplate {
  file = index.html

  variables{
    content_test < styles.content.get
  }
}

但我在浏览器“{content_test -> f:format.raw()}”中只得到这个输出

【问题讨论】:

    标签: html typo3 typoscript fluid typo3-6.2.x


    【解决方案1】:

    需要在页面中设置fluidtemplate

    page = PAGE
    page {
        config.doctype = html5
        config.xmlprologue = none
    
        10 = FLUIDTEMPLATE
        10 {
            file = index.html
    
            variables{
                content_test < styles.content.get
            }
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2017-09-11
      • 2019-06-03
      • 2015-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-27
      • 2019-04-12
      • 1970-01-01
      相关资源
      最近更新 更多