简体   繁体   English

允许TYPO3子标题中的HTML

[英]Allow HTML in TYPO3 Subheader

I couldn't find anything about this on the web or in the documentation, so I wonder if it's possible. 我在网上或文档中都找不到关于此的任何信息,所以我想知道是否有可能。

lib.stdheader.10.setCurrent.htmlSpecialChars = 0

Works fine for standard header and I already tried 对于标准标头工作正常,我已经尝试过

lib.stdheader.20.setCurrent.htmlSpecialChars = 0

for subheader, but doesn't work. 用于副标题,但不起作用。

Any hint is very appreciated! 任何提示都非常感谢!

Take a look at TypoScript Object Browser in Template module. 在“ 模板”模块中查看TypoScript对象浏览器

You'll see, that lib.stdheader.20 doesn't have setCurrent property. 您会看到, lib.stdheader.20没有setCurrent属性。 Instead it has bunch of properties, like 1. , 2. , ... and default . 相反,它具有一堆属性,例如1.2. ,...和default All of them correspond to header type: h1, h2, h3 etc. and default (which is h2). 它们都对应于标头类型: h1,h2,h3等 ,默认值是h2。

So, you need to override htmlSpecialChars for each of them. 因此,您需要为每个参数覆盖htmlSpecialChars Or, at least, for default, if you're not planning to use different subheader types: 或者,至少,默认情况下,如果您不打算使用其他子标题类型:

lib.stdheader.20.1.htmlSpecialChars = 0
lib.stdheader.20.2.htmlSpecialChars = 0
...
lib.stdheader.20.default.htmlSpecialChars = 0

Try this one :- 试试这个:-

For headers : 对于标题:

lib.stdheader.10.setCurrent.htmlSpecialChars >

For subHeaders : 对于subHeader:

lib.stdheader.20.setCurrent.htmlSpecialChars >

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM