【问题标题】:How to use vertical bars "|" (pipes) in a title, header as a string?如何使用竖线“|” (管道)在标题中,作为字符串的标题?
【发布时间】:2012-01-31 18:41:15
【问题描述】:

页面的标题为“Systemadministrator (m/w) | Dresden”。我使用垂直线(管道)字母。当我在typo3(通过dataWrap)中呈现标题时,它只会显示“Systemadministrator(m / w)Dresden”(没有垂直线字母)。

是否可以在标题、页眉等中使用垂直线字母而不必担心 TYPO3 可能会将其解释为代码(管道)?

【问题讨论】:

    标签: pipe typo3 ascii letter


    【解决方案1】:

    管道符号在 TypoScript 中用于option split。所以你将不得不逃避这个符号。您可以使用|,据我所知,这也是唯一的方法,尽管使用这样的 HTML 工作一轮有点难看。

    【讨论】:

      【解决方案2】:

      dataWrap 自动调用使用管道作为分隔符的 stdWrap,您应该可以使用 insertData 代替,尝试更改:

      MyObject.value.dataWrap = some stuff {page : title} some other stuff
      

      MyObject.value = some stuff {page : title} some other stuff
      MyObject.value.insertData = 1
      

      http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.6.0/view/1/5/#id2618446

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-04-26
        • 1970-01-01
        • 2023-04-05
        • 1970-01-01
        • 1970-01-01
        • 2012-11-07
        相关资源
        最近更新 更多